Ok!

But it is impossible in detail about this.
Let's consider the concrete example.
Style CONTROL default is WS_CHILD|WS_VISIBLE=0x50000000
As operation NOT 0x00820000 acts upon this style to its neutralize?
Why take away the style by default if it further is fixed once again? - NOT 0x00820000|0x50010000
If look result of compiling this element a dialogue, that we see that it has a style 0x50010000.
If from source texts to remove NOT 0x00820000 and once again compile the facility, that we will again get all same style.

P.S. Do Not perceive my message as critic. This in the first my longing to understand. ? in the second longing to do Your program still better.
Posted on 2003-10-24 00:23:21 by Sphinx
Hi Sphinx

I guess keeping a table of each controls default styles added by the compiler would be the perfect solution.

KetilO
Posted on 2003-10-24 01:13:23 by KetilO


Don't think of it as a logical operation. What it does is to instruct the resource compiler to not use any of its default styles.

Ok. Do small checking.
I have three different compilers of resources: rc.exe; wrc.exe (from Watcom) and brc32.exe (from Borland).
Small example of file resources:
#define IDD_DLG 1000
#define IDC_EXIT 1001
IDD_DLG DIALOGEX 6,7,194,107
CAPTION "Simple Menu"
FONT 8,"MS Sans Serif"
CLASS "DLGCLASS"
STYLE 0x10CE0800
EXSTYLE 0x00000000
BEGIN
CONTROL "Exit",IDC_EXIT,"Button",NOT 0x00820000|0x50010000,142,73,44,15,0x00000000
END

For beginning we will correct the style of button on zero i.e. shall use the style by default.
CONTROL "Exit",IDC_EXIT,"Button",0,142,73,44,15,0x00000000
All three compilers of resources have maked its equal 50000000h.
This style for element CONTROL by default.
Hereinafter we will add the fragment, which must not use the style by default.
CONTROL "Exit",IDC_EXIT,"Button",NOT 0x00820000,142,73,44,15,0x00000000
All three compilers of resources have generated style equal 50000000h. Expression NOT 0x00820000 them was ignored.

What compiler of resources correct process this expression?
Posted on 2003-10-27 02:04:54 by Sphinx
Hi Sphinx

Thanks for putting so much work into this.
In early versions dialog controls was not type CONTROL. This makes some of the NOT styles unneccessary. I will fix it.

KetilO
Posted on 2003-10-27 05:16:12 by KetilO