I just wonder if the statement in help is still up to date.
timers are not created alike
but byControl Add Timer
now i wanted to use a timer on each dialog to let the dialog redraw after resizing it. And i thought, the timer knows its Daddy so i can send all the timers to the same playground errr callback to have daddy shake the sand of his head.Dialog Set Timer
But help says- see picture - timers do not support their callback-function-parameter.
Anyway it were nice to know how to declare a function to be a callback function because the WinAPI has a few Functions to enumerate members of something that works only using a callback.
for example
EnumWindows Lib "Coredll.dll" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
EnumSystemCodePages Lib "Coredll.dll" Alias "EnumSystemCodePagesA" (ByVal lpCodePageEnumProc As Long, ByVal dwFlags As Long) As Long
or
EnumFontFamilies Lib "Coredll.dll" Alias "EnumFontFamiliesA" (ByVal hdc As Long, ByVal lpszFamily As String, ByVal lpEnumFontFamProc As Long, ByVal lParam As Long) As Long
to mention some. The one i had in mind is just... hiding somewhere. It's about how to. i don't want the finished stuff but to understand how i get there myself...
Bookmarks