I need help with hexidecimals to change window style constants in Win32.
I know that Or is used to add two hex numbers together, and I think I know that Xor adds a hex onto another hex, but only if it is not already present on it...
What I am wondering, is if there is an easy way (note: I don't know the way at all) to figure out the different hex numbers that are combined into one... or something.
What I want is to assign the ES_READONLY constant onto a gadget's style constant thing, but only sometimes. I want to be able to remove it from that gaget's GWL_STYLE long whenever I want, and add it back on whenever I want... Xor and Or don't seem to provide this functionality.
Since that made no sense at all, please just tell me about modifying Hexidecimal numbers. If it's complicated, please tell me that instead to save our time because I could also do a very stupid solution which does what I want.
I know that Or is used to add two hex numbers together, and I think I know that Xor adds a hex onto another hex, but only if it is not already present on it...
What I am wondering, is if there is an easy way (note: I don't know the way at all) to figure out the different hex numbers that are combined into one... or something.
What I want is to assign the ES_READONLY constant onto a gadget's style constant thing, but only sometimes. I want to be able to remove it from that gaget's GWL_STYLE long whenever I want, and add it back on whenever I want... Xor and Or don't seem to provide this functionality.
Since that made no sense at all, please just tell me about modifying Hexidecimal numbers. If it's complicated, please tell me that instead to save our time because I could also do a very stupid solution which does what I want.