flat assembler
Message board for the users of flat assembler.
![]() |
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. |
|||
![]() |
|
AsmGuru62 14 Aug 2014, 18:33
Yes, trap it - subclass the HWND of a button.
|
|||
![]() |
|
jochenvnltn 14 Aug 2014, 18:55
Can i get an example please ? Ive tried using SetClassLong but it's not working ..
|
|||
![]() |
|
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 |
|||
![]() |
|
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 ? ![]() |
|||
![]() |
|
AsmGuru62 15 Aug 2014, 19:22
Code sample (sub-classing the button handle).
|
|||||||||||
![]() |
|
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 ![]() ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.