c 2b 2b create button

Solutions on MaxInterview for c 2b 2b create button by the best coders in the world

showing results for - "c 2b 2b create button"
Étienne
25 Feb 2018
1HWND hwndButton = CreateWindow( 
2    L"BUTTON",  // Predefined class; Unicode assumed 
3    L"OK",      // Button text 
4    WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,  // Styles 
5    10,         // x position 
6    10,         // y position 
7    100,        // Button width
8    100,        // Button height
9    m_hwnd,     // Parent window
10    NULL,       // No menu.
11    (HINSTANCE)GetWindowLongPtr(m_hwnd, GWLP_HINSTANCE), 
12    NULL);      // Pointer not needed.
13