Hi Randy,
some brief suggestions for you next housekeeping task
Randy Walker wrote: Sun Oct 06, 2024 5:04 pm
.....I
never claimed I was a programmer. .....
1. I prefer using constants like #WND_Main, #GDT_btnAddNewEvent, #GDT_DiscardEvent, #GDT_DiscardAllChanges, etc.
Why? Because I have the feeling, it makes the code more readable and understandable (especially after a while)
Code: Select all
Enumeration EWindow 1
#WND_Main
; tbc.
EndEnumeration
Enumeration EGadget 1
#GDT_btnAddNewEvent
#GDT_DiscardEvent
#GDT_DiscardAllChanges
; tbc.
EndEnumeration
2. Important for 64-bit apps is the use of SetWindowLongPtr_() instead of SetWindowLong_(). Same applies to SetClassLong_()
Why? See MSDN:
Note This function has been superseded by the SetWindowLongPtr function. To write code that is compatible with both 32-bit and 64-bit versions of Windows, use the SetWindowLongPtr function.