Skip to main content
GameDev.net gamedev.net
🔒 Locked

win32 borderless window?

Started by ayron Oct 6, 2006 at 11:37 AM 1 replies 7.8k views
Original Post
ayron
ayron
I can't for the life of me figure out how to create a window without borders. I tried POPUP | VISIBLE styles, but the window doesn't show at all (though it shows on the taskbar). I read that CW_USEDEFAULT doesn't work with the POPUP flag but removing them doesn't make a difference. Will somebody please point me in the right direction? TIA!
deffer
deffer
A quick glance on my own code says that I'm using

bool borders = ...;
const DWORD dwstyle = borders ? WS_OVERLAPPEDWINDOW : (WS_OVERLAPPED | WS_POPUP);
ayron
ayron
Hi deffer, I tried that but it only shows up in the task bar, there's no window displayed on the screen. Could it have something to do with the window class style tags? Currently I have it set to zero.

Oops, I had to make a call to SetWindowPos() to get it to show up. Thanks again deffer.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.