Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stupid easy question..............

Status
Not open for further replies.

makaveliuk

Programmer
Dec 1, 2003
46
GB
Right, it's been so long since I used C++ I have completely forgotten how to do this (I know its easy).

I have created a Window using CreateWindowEx with a defined style and a set of checkboxes to enable/disable style flags.

How do I write an if statement to say:

If the current windowstyle contains WS_POPUP and the checkbox for popup is checked do nothing, or if the checkbox is checked and WS_POPUP is not specified add it, or if WS_POPUP is specified and the checkbox is not blank remove it?

Hope that makes sense (Been using BASIC for too long now!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top