What declaration for InitCommonControlsEx should I add to oldwinapi, since only InitCommonControl seems to be in that module AND MSDN says:
Under Comctl32.dll version 6.0 and later, InitCommonControls does nothing. Applications must explicitly register all common controls through InitCommonControlsEx.
Is there a "newwinapi" for Nim anywhere on the web?
I am trying to develop a "minimum" cross platform (GTK and WIN) library that uses the Nim object management instead of another third party library's own memory management. (Yes, I know that GTK includes its own memory management - but that is usually built in to the distribution).
Below is something that worked (AFAIK) - you will have to search out the other ICC definitions.
type TINITCOMMONCONTROLSEX = object
dwSize:DWORD
dwICC:DWORD
const
ICC_UPDOWN_CLASS = 0x10
proc InitCommonControlsEx*(lpInitCtrls:ptr TINITCOMMONCONTROLSEX):WINBOOL {.stdcall, dynlib: "comctl32",
importc: "InitCommonControlsEx".}
nim