CreateWindow;
-
I am tring to create a groupbox on the client window in a wtl project. I can not get it to work, it creates a window the right size but does not paint the text or the group outline. I have created buttons and checkboxes and all work fine painting and all. Here is the code for the groupbox I am tring to create.
hWndGroup = ::CreateWindow(WC_STATIC, _T("Check Item(s) to Disable."),
WS_CHILD | WS_VISIBLE | BS_GROUPBOX | BS_LEFTTEXT | BS_TEXT,
70, 50, 200, 130, m_hWnd, (HMENU)ID_GROUPBOX,
((LPCREATESTRUCT)lParam)->hInstance, NULL);Thank You Bo Hunter
-
I am tring to create a groupbox on the client window in a wtl project. I can not get it to work, it creates a window the right size but does not paint the text or the group outline. I have created buttons and checkboxes and all work fine painting and all. Here is the code for the groupbox I am tring to create.
hWndGroup = ::CreateWindow(WC_STATIC, _T("Check Item(s) to Disable."),
WS_CHILD | WS_VISIBLE | BS_GROUPBOX | BS_LEFTTEXT | BS_TEXT,
70, 50, 200, 130, m_hWnd, (HMENU)ID_GROUPBOX,
((LPCREATESTRUCT)lParam)->hInstance, NULL);Thank You Bo Hunter
hWnd = CreateWindow (WC_STATIC,_T("Check Item(s) to Disable."),WS_CHILD |..., 0, 0, width, 30+gHeight + WINDOWHEIGHT, NULL, NULL, ghInst, tData); Best Wishes, ez_way
-
I am tring to create a groupbox on the client window in a wtl project. I can not get it to work, it creates a window the right size but does not paint the text or the group outline. I have created buttons and checkboxes and all work fine painting and all. Here is the code for the groupbox I am tring to create.
hWndGroup = ::CreateWindow(WC_STATIC, _T("Check Item(s) to Disable."),
WS_CHILD | WS_VISIBLE | BS_GROUPBOX | BS_LEFTTEXT | BS_TEXT,
70, 50, 200, 130, m_hWnd, (HMENU)ID_GROUPBOX,
((LPCREATESTRUCT)lParam)->hInstance, NULL);Thank You Bo Hunter
Try WC_BUTTON for the window class. Best regards Oliver