Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > an information 'bout |

Reply
Thread Tools

an information 'bout |

 
 
RicercatoreSbadato
Guest
Posts: n/a
 
      09-08-2005
m_objVideoWindow.WindowStyle = WS_CHILD | WS_CLIPCHILDREN;

what does "|" mean? That the window is both WS_CHILD and
WS_CLIPCHILDREN?

 
Reply With Quote
 
 
 
 
EventHelix.com
Guest
Posts: n/a
 
      09-08-2005
WS_CHILD and WS_CLIPCHILDREN are bit patterns. "I" is enabling the bits
corresponding both the patterns.

Thus the window would have the attributes of WS_CHILD and
WS_CLIPCHILDREN.

--
EventStudio 2.5 - http://www.EventHelix.com/EventStudio
Enter model in plain text;generate sequence diagram in PDF/Word

 
Reply With Quote
 
 
 
 
RicercatoreSbadato
Guest
Posts: n/a
 
      09-08-2005
tnx

 
Reply With Quote
 
Rolf Magnus
Guest
Posts: n/a
 
      09-08-2005
RicercatoreSbadato wrote:

> m_objVideoWindow.WindowStyle = WS_CHILD | WS_CLIPCHILDREN;
>
> what does "|" mean?


Maybe you should get an entry level C++ book. '|' is C++'s 'or' operator.

 
Reply With Quote
 
red floyd
Guest
Posts: n/a
 
      09-08-2005
Rolf Magnus wrote:
> RicercatoreSbadato wrote:
>
>
>> m_objVideoWindow.WindowStyle = WS_CHILD | WS_CLIPCHILDREN;
>>
>>what does "|" mean?

>
>
> Maybe you should get an entry level C++ book. '|' is C++'s 'or' operator.
>


More specifically, it's C++'s *bitwise or* operator, as opposed to
boolean or.

i.e.

assume WS_CHILD is 0x0001 and WS_CLIPCHILDREN is 0x0002

Then WS_CHILD | WS_CLIPCHILDREN is 0x0003;

Whereas the boolean or (||) would give a different result (namely 1)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
signer information does not match signer information of other classes in the same pac lerenard001 Java 0 07-07-2008 03:46 PM
Information technology is incomplete without information security alannis.albert@googlemail.com Computer Support 0 04-14-2008 06:42 AM
More Information than just IIS Log Information subrato ASP .Net 8 03-14-2006 09:59 PM
signer information does not match signer information of other classes in the same package clercmedia Java 2 12-09-2005 03:14 PM
strange information from asp.net trace / getting performance information using WebRequest and StreamReader z. f. ASP .Net 0 02-03-2005 11:23 AM



Advertisments