Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Source Help

General Question about removing flags in win32

A community discussion post from the original code:zIRON forum.

Molotov member
Posts
49
Threads
21
Location
Behind Keyboard

General Question about removing flags in win32

How would i do something like this?

zAppStyle = (WS_OVERLAPPEDWINDOW or WS_SYSMENU) &~(WS_MINIMIZEBOX or WS_MAXIMIZEBOX or WS_THICKFRAME);

According to my sources &~ would mean the flags would be removed.

Thanks in Advance

"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

i don't quite understand the purpose, i think you will need to explain it in detail, is zAppStyle a const or variable?

Molotov member
Posts
49
Threads
21
Location
Behind Keyboard

Thanks for help on msn.. :)

problem solved by

const zAppStyle = WS_CAPTION or WS_SYSMENU;

ws_caption doesn´t have minimize/maximize buttons by default. :yess:

"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b