Hi I'm using the following code to create a window
What I want ideally is a resizeable window with no caption. From what I understand a caption should be optional but no matter what I do I can't get rid of the blue bar. Mind you theres no text or Min, Max, etc buttons. What should I do, should I change to standard window not Ex. Also at the moment this won't resize. I know that there are a few differnet border styles so one of them will probably work, also I could do this in codeing muself if I have to. Just to summarise the ideal solution would be one whereby the window is just an empty whit rectangle. If I get that far I'll do the rest in code myslf.
mov wc.cbSize,SIZEOF WNDCLASSEX mov wc.style, CS_HREDRAW or CS_VREDRAW mov wc.lpfnWndProc, OFFSET WndProc mov wc.cbClsExtra,NULL mov wc.cbWndExtra,NULL push hInstance pop wc.hInstance mov wc.hbrBackground,COLOR_WINDOW+1 mov wc.lpszMenuName,NULL mov wc.lpszClassName,OFFSET ClassName invoke LoadIcon,NULL,IDI_APPLICATION mov wc.hIcon,eax mov wc.hIconSm,eax invoke LoadCursor,NULL,IDC_ARROW mov wc.hCursor,eax invoke RegisterClassEx, addr wc INVOKE CreateWindowEx,NULL ,ADDR ClassName,NULL,\ NULL ,CW_USEDEFAULT,\ CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,\ hInst,NULL mov hwnd,eax
hi your createwindowex will look like this:
smurf This message was edited by smurf, on 4/23/2001 3:58:17 PM
INVOKE CreateWindowEx,NULL,ADDR ClassName,NULL,\ WS_POPUP or WS_DLGFRAME or WS_SIZEBOX,CW_USEDEFAULT,\ CW_USEDEFAULT,300,200,NULL,NULL,\ hInst,NULL
Thanks, that was brilliant, it worked a charm.