My program is a simple dll, so I used GetModuleHandle(NULL) and got the following error:
cannot convert parameter 10 from 'const int' to 'struct HMENU__ *'
Here is how I put it in:
Code:
hwndTrack = CreateWindowEx(
0, // no extended styles
TRACKBAR_CLASS, // class name
"Trackbar Control", // title (caption)
WS_CHILD | WS_VISIBLE |
TBS_AUTOTICKS | TBS_ENABLESELRANGE, // style
10, 10, // position
200, 30, // size
gOptionsDlg, // parent window
IDC_SLIDER1, // control identifier
GetModuleHandle(NULL), // instance
NULL // no WM_CREATE parameter
);