Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CE C++ - static text font and size how to Pin
Matthew Faithfull7-Jun-07 6:33
Matthew Faithfull7-Jun-07 6:33 
GeneralRe: CE C++ - static text font and size how to Pin
LaCoder7-Jun-07 6:50
LaCoder7-Jun-07 6:50 
AnswerRe: CE C++ - static text font and size how to Pin
Anurag Gandhi7-Jun-07 6:35
professionalAnurag Gandhi7-Jun-07 6:35 
GeneralRe: CE C++ - static text font and size how to Pin
LaCoder7-Jun-07 6:53
LaCoder7-Jun-07 6:53 
QuestionVariable Resource Ids Pin
maberry7-Jun-07 6:05
maberry7-Jun-07 6:05 
QuestionRe: Variable Resource Ids Pin
Mark Salsbery7-Jun-07 6:50
Mark Salsbery7-Jun-07 6:50 
AnswerRe: Variable Resource Ids Pin
maberry7-Jun-07 7:59
maberry7-Jun-07 7:59 
GeneralRe: Variable Resource Ids Pin
Mark Salsbery7-Jun-07 8:13
Mark Salsbery7-Jun-07 8:13 
GetDlgItem expects an integer ID. You could map indexes to an array of strings but that just
adds an unnecessary level of indirection since you'd need to convert that string back to an int
to call GetDlgItem. So, you might as well use i to index an array of actual control IDs
(integers).

That brings me back to what I was thinking...
#define IDC_BUTTON1      1000
#define IDC_BUTTON2      1001
#define IDC_BUTTON3      1002
#define IDC_BUTTON4      1003
#define IDC_BUTTON5      1004
#define IDC_BUTTON6      1005
...
 
for(i=0; i<number of sub entities; i++)
{
    //for check button 
    pBtn=GetDlgItem(i + BUTTON1);
    pBtn->ShowWindow(SW_SHOWNORMAL);
}

 -or-

for(i=IDC_BUTTON1; i<IDC_BUTTON6; i++)
{
    //for check button 
    pBtn=GetDlgItem(i);
    pBtn->ShowWindow(SW_SHOWNORMAL);
}



"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

QuestionLoadLibrary(Ex) and SetErrorMode problem Pin
Nitrogenycs7-Jun-07 5:59
Nitrogenycs7-Jun-07 5:59 
AnswerRe: LoadLibrary(Ex) and SetErrorMode problem Pin
bob169727-Jun-07 7:58
bob169727-Jun-07 7:58 
GeneralRe: LoadLibrary(Ex) and SetErrorMode problem Pin
Nitrogenycs7-Jun-07 8:36
Nitrogenycs7-Jun-07 8:36 
QuestionRe: LoadLibrary(Ex) and SetErrorMode problem Pin
bob169727-Jun-07 9:24
bob169727-Jun-07 9:24 
GeneralRe: LoadLibrary(Ex) and SetErrorMode problem Pin
Nitrogenycs7-Jun-07 9:45
Nitrogenycs7-Jun-07 9:45 
Questionstd::map but with multiple values for one key? Pin
Cyrilix7-Jun-07 3:57
Cyrilix7-Jun-07 3:57 
AnswerRe: std::map but with multiple values for one key? Pin
CPallini7-Jun-07 4:12
mveCPallini7-Jun-07 4:12 
GeneralRe: std::map but with multiple values for one key? Pin
Cyrilix7-Jun-07 4:23
Cyrilix7-Jun-07 4:23 
AnswerRe: std::map but with multiple values for one key? Pin
Michael Sadlon7-Jun-07 8:11
Michael Sadlon7-Jun-07 8:11 
GeneralRe: std::map but with multiple values for one key? Pin
Cyrilix7-Jun-07 8:19
Cyrilix7-Jun-07 8:19 
AnswerRe: std::map but with multiple values for one key? Pin
Michael Sadlon8-Jun-07 10:19
Michael Sadlon8-Jun-07 10:19 
Question#include files included more than once Pin
prithaa7-Jun-07 2:57
prithaa7-Jun-07 2:57 
AnswerRe: #include files included more than once Pin
CPallini7-Jun-07 3:04
mveCPallini7-Jun-07 3:04 
AnswerRe: #include files included more than once Pin
Cedric Moonen7-Jun-07 3:04
Cedric Moonen7-Jun-07 3:04 
AnswerRe: #include files included more than once Pin
Shouvik Das7-Jun-07 3:06
Shouvik Das7-Jun-07 3:06 
GeneralRe: #include files included more than once Pin
prithaa7-Jun-07 23:06
prithaa7-Jun-07 23:06 
GeneralRe: #include files included more than once Pin
Shouvik Das7-Jun-07 23:15
Shouvik Das7-Jun-07 23:15 

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.