How to make a button inside a window?
Thanks in the advance.
How to make a button inside a window?
Thanks in the advance.
Try a windows tutorial - http://www.foosyerdoos.fsnet.co.uk/
Here is one way of making a button:
If you want more infomation about making buttons or other windows you should look at the MSDNCode:HWND CreateButton(HWND hParent, int cx, int cy, int x, int y, DWORD dwStyle, DWORD dwExStyle) { return CreateWindowEx(dwExStyle, "BUTTON", NULL, dwStyle | WS_CHILD | WS_VISIBLE, x, y, cx, cy, hParent, NULL, 0, NULL); }
Again if you use the WS_CHILD style then you need to set its resouce ID number (as the HMENU param).
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill