Can anybody rewrite lexikos's resizable frame to C++?

Talk about things C/C++, some related to AutoHotkey
brandonhotkey
Posts: 113
Joined: 03 Nov 2013, 05:46

Can anybody rewrite lexikos's resizable frame to C++?

12 Jul 2015, 12:32

I have found this script made by lexikos:

http://p.ahkscript.org/?p=3acf77

(http://www.autohotke...angle/?p=186305)

can anybody to rewrite it to work in C++? I do not need complete application (I have one) but just the functions to start and end drawing. So I could install it. I am C/C++ newbie, using Visual Studio 2010.
User avatar
joedf
Posts: 8951
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Can anybody rewrite lexikos's resizable frame to C++?

15 Jul 2015, 11:15

Your second link is broken :(
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
joedf
Posts: 8951
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Can anybody rewrite lexikos's resizable frame to C++?

16 Jul 2015, 01:05

What's is the particular part you are having issue rewriting?
The code is actually pretty straightforward. ;)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
brandonhotkey
Posts: 113
Joined: 03 Nov 2013, 05:46

Re: Can anybody rewrite lexikos's resizable frame to C++?

03 Sep 2015, 11:55

No need for drawing... On Windows when you want to select some file or icons you can use a simple frame, just click and drag mouse pointer.

My question is how can I do it (using Visual Studio C++) to use such frame in a window? I have a window displaying a map. I would like to use this frame so mark certain area and to get the coordinates after I realease mouse button.

How is this function called and what library it is using?
User avatar
joedf
Posts: 8951
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Can anybody rewrite lexikos's resizable frame to C++?

04 Sep 2015, 15:44

I dont think the "select frame box" exists for actual windows. :/
Youll have to draw it manually, probably using GDI+ or something..
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 6 guests