flat assembler
Message board for the users of flat assembler.
Index
> Windows > how to change Cursor over Button ? |
Author |
|
cod3b453 14 Aug 2014, 16:52
Been a while since I've done this kinda stuff...
You can load the cursor with LoadCursor and then either apply it to your button using SetClassLong (should apply it to all buttons) or trap WM_SETCURSOR to the button and use SetCursor for a specific button. |
|||
14 Aug 2014, 16:52 |
|
AsmGuru62 14 Aug 2014, 18:33
Yes, trap it - subclass the HWND of a button.
|
|||
14 Aug 2014, 18:33 |
|
jochenvnltn 14 Aug 2014, 18:55
Can i get an example please ? Ive tried using SetClassLong but it's not working ..
|
|||
14 Aug 2014, 18:55 |
|
typedef 15 Aug 2014, 03:32
No need to subclass. Just trap WM_NOTIFY and look for this :
[BCN_HOTITEMCHANGE] http://msdn.microsoft.com/en-us/library/windows/desktop/bb775984(v=vs.85).aspx Then cast lParam to this: http://msdn.microsoft.com/en-us/library/windows/desktop/bb775959(v=vs.85).aspx Second member of the structure specifies which event is taking place: HICF_ENTERING or HICF_LEAVING |
|||
15 Aug 2014, 03:32 |
|
jochenvnltn 15 Aug 2014, 14:33
typedef wrote: No need to subclass. Just trap WM_NOTIFY and look for this : Thanks "typedef" How do i check HICF_ENTERING or HICF_LEAVING ? I think this is very interesting stuff. Can you show a simple example pls ? |
|||
15 Aug 2014, 14:33 |
|
AsmGuru62 15 Aug 2014, 19:22
Code sample (sub-classing the button handle).
|
|||||||||||
15 Aug 2014, 19:22 |
|
jochenvnltn 16 Aug 2014, 00:22
AsmGuru62 wrote: Code sample (sub-classing the button handle). Thank you "AsmGuru62" !! Many thanks for your effort on this ! I I am really happy that i have learned something new that i can use so many times FASM is like a very big book you always find something new and interesting in that's worth reading about. Ill never forget this. Thank you |
|||
16 Aug 2014, 00:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.