[windows] How can I create a custom window?c++
Posted 09 February 2012 - 07:13 PM
like this: http://img.informer....8/3518273_1.jpg
I'm a total noob with windows programming, so could anyone explain how I can do this?
Posted 09 February 2012 - 08:01 PM
You can supply images to Win32 button controls and you can listen for mouse events to change the image accordingly. For labels and edit boxes, you can customize their font styles. To do more advanced editing, you will have to learn about the WM_PAINT message and override the standard paint routines with your own.
Once you become familiar with the Win32 message loop, have a look at this page. It describes all the Win32 controls that are available and what their control and notification messages are. You can intercept any of the notification message and perform some sort of logic. For example, you can listen for the BCN_HOTITEMCHANGE to determine if the mouse is hovering or leaving the button area and change the button's image accordingly.
Posted 09 February 2012 - 09:09 PM
Because I really dislike windows programming
Posted 09 February 2012 - 09:41 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users