做一个StatusBar
static HWND hWndStatus;
static int aWidths [4];switch (message) 
{
case WM_CREATE:
hWndStatus = CreateWindowEx ( 
0L, // extended style
STATUSCLASSNAME, // create status bar
"", // window title
WS_CHILD | WS_BORDER | 
WS_VISIBLE | SBS_SIZEGRIP, // window styles
0, 0, 0, 0, // x, y, width, height
hWnd, // parent window
(HMENU)ID_STATUSBAR, // 这里的ID 已经用[ID=]创建
hInst, // instance
NULL); // window dataif (hWndStatus == NULL)
MessageBox (NULL, "Status Bar not created!", NULL, MB_OK);
// Break the status bar into four parts.
SendMessage (hWndStatus, SB_SETPARTS, 4, (LPARAM)aWidths); 
编译通过
但是说"Status Bar not created!",为什么//==========================
hWndSlider1 = CreateWindow (
TRACKBAR_CLASS,
"",
WS_CHILD | WS_VISIBLE | TBS_AUTOTICKS,
10, 50, 200, 20,
hWnd, 
(HMENU)10, //这个标识有什么用没有不通过句柄照样使用?
hInst,
NULL);情况同上!真是糟糕透了