|
|
Yes, you can make as many windows as you want in a console app.
#include "stdafx.h"
#include "windows.h"
int main(int argc, char* argv[])
{
HWND h = CreateWindowEx(0, "BUTTON","TEST",WS_TILED,0,0,100,100,0,0,0,0);
ShowWindow(h, SW_NORMAL);
MSG msg;
while(GetMessage(&msg, 0,0,0))
{
DispatchMessage(&msg);
if(msg.message==WM_LBUTTONDOWN) PostQuitMessage(0);
}
return 0;
}
|
This code compiles and runs on a console app in MSVC++ 6.0 Be sure to include windows.h
(It creates a floating button, which isn't very helpfull, but still :p)
|