Original Post
Hello, I've got a question on bits. kinda basic... I have a DWORD to set some char options in an edit box; e.g. DWORD format = CFM_BOLD|CFM_COLOR|CFM_ITALIC|CFM_UNDERLINE; but I would like to string it up according to some parameters I have a function setformat ( bool bold, bool italic, bool underline ) so I would like to set the format string according to the parameters if ( bold ) format += CFM_BOLD if ( italic) format += CFM_ITALIC etc now, += doesn't work.... how can this be done... I've tried bit operators like & and | etc, but I know only how to read stuff with them, not how to set stuff. thanks in advance