cplusplus.com
C++ : Forum : Windows Programming : MF_CHECKED Dumb Question
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


post MF_CHECKED Dumb Question

Lamblion (627)
In Winuser.h we have this...

1
2
#define MF_UNCHECKED        0x00000000L
#define MF_CHECKED          0x00000008L 


The L on the end has me wondering if I am safe to use size_t on these, for example...

1
2
size_t MF_WONTOP;
bWONTOP==TRUE ? MF_WONTOP=MF_CHECKED : MF_WONTOP=MF_UNCHECKED;


Or do I need to cast MF_WONTOP as a long?
Bazzy (6258)
since MF_CHECKED and MF_UNCHECKED have only low values you can use size_t but a long would be better, even because size_t should be unsigned
Lamblion (627)
Okay, thanks. That's what I was thinking, but I'm still feeling my way on these things.
Topic archived. No new replies allowed.