Click here to Skip to main content
15,918,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can I declare a control based on OS version in .h file? Pin
toxcct9-Aug-07 1:53
toxcct9-Aug-07 1:53 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
Joe Smith IX9-Aug-07 2:11
Joe Smith IX9-Aug-07 2:11 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
toxcct9-Aug-07 2:18
toxcct9-Aug-07 2:18 
AnswerRe: Can I declare a control based on OS version in .h file? Pin
khb9-Aug-07 1:54
khb9-Aug-07 1:54 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
Joe Smith IX9-Aug-07 1:59
Joe Smith IX9-Aug-07 1:59 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
khb9-Aug-07 2:04
khb9-Aug-07 2:04 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
sps-itsec469-Aug-07 2:56
sps-itsec469-Aug-07 2:56 
QuestionRe: Can I declare a control based on OS version in .h file? Pin
David Crow9-Aug-07 2:55
David Crow9-Aug-07 2:55 
For a compile-time version, how about something like:

#if _WIN32_WINNT >= 0x0501
 CButton1 m_btn1;
#else
 CButton2 m_btn1;
#endif







"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


AnswerRe: Can I declare a control based on OS version in .h file? Pin
toxcct9-Aug-07 3:00
toxcct9-Aug-07 3:00 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
David Crow9-Aug-07 3:03
David Crow9-Aug-07 3:03 
AnswerRe: Can I declare a control based on OS version in .h file? Pin
sps-itsec469-Aug-07 3:00
sps-itsec469-Aug-07 3:00 
GeneralRe: Can I declare a control based on OS version in .h file? Pin
David Crow9-Aug-07 3:03
David Crow9-Aug-07 3:03 
QuestionAddstring function Pin
tyagineha9-Aug-07 0:40
tyagineha9-Aug-07 0:40 
AnswerRe: Addstring function Pin
khb9-Aug-07 0:49
khb9-Aug-07 0:49 
GeneralRe: Addstring function Pin
tyagineha9-Aug-07 0:53
tyagineha9-Aug-07 0:53 
AnswerRe: Addstring function Pin
khb9-Aug-07 0:57
khb9-Aug-07 0:57 
GeneralRe: Addstring function Pin
jhwurmbach9-Aug-07 1:07
jhwurmbach9-Aug-07 1:07 
GeneralRe: Addstring function Pin
tyagineha9-Aug-07 1:12
tyagineha9-Aug-07 1:12 
GeneralRe: Addstring function Pin
jhwurmbach9-Aug-07 1:22
jhwurmbach9-Aug-07 1:22 
AnswerRe: Addstring function Pin
khb9-Aug-07 1:27
khb9-Aug-07 1:27 
AnswerRe: Addstring function Pin
KarstenK9-Aug-07 1:10
mveKarstenK9-Aug-07 1:10 
GeneralRe: Addstring function Pin
David Crow9-Aug-07 3:00
David Crow9-Aug-07 3:00 
AnswerRe: Addstring function Pin
Jim Crafton9-Aug-07 8:25
Jim Crafton9-Aug-07 8:25 
GeneralRe: Addstring function Pin
tyagineha9-Aug-07 17:41
tyagineha9-Aug-07 17:41 
GeneralRe: Addstring function Pin
Jim Crafton10-Aug-07 4:19
Jim Crafton10-Aug-07 4:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.