for my own personal use, I'm making a header file that creates some of the more common controls such as buttons, text, etc. This is how I create one of the controls:
but i have a few questions.Code:HFONT hfDefault; HWND current; current=CreateWindowEx(0, "BUTTON", caption,WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,xpos, ypos, length, width, hWnd,NULL,NULL, NULL); hfDefault =(HFONT)GetStockObject(DEFAULT_GUI_FONT); SendMessage(current, WM_SETFONT, (WPARAM)hfDefault, MAKELPARAM(FALSE, 0));
1.)How do you delete the button off the window?
2.)How would you go about changing the WS_VISIBLE option?