![]() |
|
[C] WndProc for custom button[Win32api] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] WndProc for custom button[Win32api] (/showthread.php?tid=5863115) |
WndProc for custom button[Win32api] - aeiro - Jul 17, 2018 This is my first time creating and handling a custom button from registering a new window class to drawing the button in the new wndproc function. Therefore i felt it'd be nice to share. The for loops need a bit of work to fully fill the center of the button and fonts act odd with certain colors. I havn't really figured that part. I'm also still building this proc to hopefully convert it into an edit control. Currently these buttons can only do what you see in the below GIF change color on hover and stay colored on click with unclick other active button. PHP Code
RE: WndProc for custom button[Win32api] - maryous - Jul 18, 2018 what is the use of "MoveToEx and LineTo" if you don't mind me asking RE: WndProc for custom button[Win32api] - aeiro - Jul 18, 2018 (Jul 18, 2018 09:09 AM)maryous Wrote: what is the use of "MoveToEx and LineTo" if you don't mind me asking draws a line from the points specified. you first set the starting point of the line with moveto then the endpoint with lineto which completes the draw. RE: WndProc for custom button[Win32api] - maryous - Jul 18, 2018 (Jul 18, 2018 01:48 PM)aeiro Wrote: draws a line from the points specified. you first set the starting point of the line with moveto then the endpoint with lineto which completes the draw. thanks 🤝 🤝 🤝 RE: WndProc for custom button[Win32api] - aeiro - Jul 22, 2018 ![]()
|