Click here to Skip to main content
15,902,771 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Do I have to free the resource returned by CPrintDialog::GetDevMode Pin
_AnsHUMAN_ 4-Sep-08 22:43
_AnsHUMAN_ 4-Sep-08 22:43 
GeneralRe: Do I have to free the resource returned by CPrintDialog::GetDevMode Pin
followait4-Sep-08 22:57
followait4-Sep-08 22:57 
Questioncombine two .exe files [modified] Pin
Vincen Wang4-Sep-08 22:04
Vincen Wang4-Sep-08 22:04 
AnswerRe: combine two .exe files Pin
vikas amin5-Sep-08 6:47
vikas amin5-Sep-08 6:47 
GeneralRe: combine two .exe files Pin
Vincen Wang10-Sep-08 21:02
Vincen Wang10-Sep-08 21:02 
QuestionProblem with mt.exe Pin
T.RATHA KRISHNAN4-Sep-08 21:37
T.RATHA KRISHNAN4-Sep-08 21:37 
AnswerRe: Problem with mt.exe Pin
_AnsHUMAN_ 4-Sep-08 21:54
_AnsHUMAN_ 4-Sep-08 21:54 
Questionhow to get IDC_ control ids dynamically Pin
saksp4-Sep-08 21:17
saksp4-Sep-08 21:17 
1) Is there some way I can get a list of IDC_ control ids dynamically at run time to step through in a loop like the following

List idList = SomeFunction() // Get a list of control objects
for(int k = 0; k < idList.length(); k++)
{
GetDlgItem(k.id)->EnableWindow(false);
}

2) The other option I though of is that if all my IDC_ ids increment, I would only need to know the total number of items and I could do the following:

unsigned int cnt = SomeFunction(); // Get the total number of control objects
for(int k = 0; k < cnt; k++)
{
GetDlgItem(k)->EnableWindow(false);
}

thanks

AnswerRe: how to get IDC_ control ids dynamically Pin
Naveen4-Sep-08 21:22
Naveen4-Sep-08 21:22 
QuestionCopy File Data Pin
knowvc4-Sep-08 20:53
knowvc4-Sep-08 20:53 
AnswerRe: Copy File Data Pin
Rajesh R Subramanian4-Sep-08 20:55
professionalRajesh R Subramanian4-Sep-08 20:55 
GeneralRe: Copy File Data Pin
knowvc4-Sep-08 21:22
knowvc4-Sep-08 21:22 
GeneralRe: Copy File Data Pin
Michael Schubert5-Sep-08 2:24
Michael Schubert5-Sep-08 2:24 
AnswerRe: Copy File Data Pin
Cedric Moonen4-Sep-08 20:56
Cedric Moonen4-Sep-08 20:56 
Questionprogid Pin
George_George4-Sep-08 20:31
George_George4-Sep-08 20:31 
AnswerRe: progid Pin
User 2155974-Sep-08 20:52
User 2155974-Sep-08 20:52 
GeneralRe: progid Pin
George_George4-Sep-08 21:12
George_George4-Sep-08 21:12 
GeneralRe: progid Pin
User 2155974-Sep-08 21:28
User 2155974-Sep-08 21:28 
GeneralRe: progid Pin
George_George4-Sep-08 21:33
George_George4-Sep-08 21:33 
GeneralRe: progid Pin
User 2155974-Sep-08 23:11
User 2155974-Sep-08 23:11 
GeneralRe: progid Pin
George_George4-Sep-08 23:26
George_George4-Sep-08 23:26 
GeneralRe: progid Pin
User 2155974-Sep-08 23:44
User 2155974-Sep-08 23:44 
GeneralRe: progid Pin
George_George4-Sep-08 23:55
George_George4-Sep-08 23:55 
GeneralRe: progid [modified] Pin
User 2155975-Sep-08 0:03
User 2155975-Sep-08 0:03 
GeneralRe: progid Pin
George_George5-Sep-08 0:50
George_George5-Sep-08 0:50 

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.