Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ignore ASSERT Dialog? Pin
Anonymous8-Jun-05 17:48
Anonymous8-Jun-05 17:48 
GeneralRe: Ignore ASSERT Dialog? Pin
Christian Graus8-Jun-05 18:25
protectorChristian Graus8-Jun-05 18:25 
GeneralRe: Ignore ASSERT Dialog? Pin
Alex Korchemniy8-Jun-05 21:20
Alex Korchemniy8-Jun-05 21:20 
AnswerRe: Ignore ASSERT Dialog? Pin
Christian Graus8-Jun-05 18:26
protectorChristian Graus8-Jun-05 18:26 
AnswerRe: Ignore ASSERT Dialog? Pin
Blue-Bird9-Jun-05 3:38
Blue-Bird9-Jun-05 3:38 
Generalcontrols with consecutive control ID Pin
elephantstar8-Jun-05 16:25
elephantstar8-Jun-05 16:25 
GeneralRe: controls with consecutive control ID Pin
Christian Graus8-Jun-05 16:34
protectorChristian Graus8-Jun-05 16:34 
GeneralRe: controls with consecutive control ID Pin
Blake Miller9-Jun-05 6:47
Blake Miller9-Jun-05 6:47 
On the other hand, in the event that some other nitwit comes along and does not KNOW they have to be in order, you can declare a static array of UINT in your source file containing the identifiers, and use that as the basis for your looping.

static UINT s_ControlArray[] = {
IDC_CONTROL_1_1, IDC_CONTROL_1_2, IDC_CONTROL_1_3,
IDC_CONTROL_2_1, IDC_CONTROL_2_2, IDC_CONTROL_2_3
};

Use a for loop to access the elements in the array.
The GetDlgItem() would work using those identifier values, and then you can use the EnableItem as you wanted.

GeneralRe: controls with consecutive control ID Pin
John M. Drescher8-Jun-05 16:58
John M. Drescher8-Jun-05 16:58 
GeneralUse MFC inside win32 Pin
daydremer8-Jun-05 16:10
daydremer8-Jun-05 16:10 
GeneralRe: Use MFC inside win32 Pin
Christian Graus8-Jun-05 16:11
protectorChristian Graus8-Jun-05 16:11 
GeneralVFW and Capturing Image While Dialog is Minimized Pin
User 127828-Jun-05 15:45
User 127828-Jun-05 15:45 
GeneralHelp with compile error Pin
nombrecinq8-Jun-05 14:07
nombrecinq8-Jun-05 14:07 
GeneralRe: Help with compile error Pin
mark novak8-Jun-05 14:56
mark novak8-Jun-05 14:56 
GeneralRe: Help with compile error Pin
nombrecinq8-Jun-05 14:59
nombrecinq8-Jun-05 14:59 
GeneralRe: Help with compile error Pin
mark novak8-Jun-05 15:22
mark novak8-Jun-05 15:22 
Generalpointer question Pin
jee858-Jun-05 11:05
sussjee858-Jun-05 11:05 
GeneralRe: pointer question Pin
mark novak8-Jun-05 14:54
mark novak8-Jun-05 14:54 
GeneralIActiveDesktop Pin
neliocc8-Jun-05 10:43
neliocc8-Jun-05 10:43 
GeneralRe: IActiveDesktop Pin
mark novak8-Jun-05 15:29
mark novak8-Jun-05 15:29 
GeneralRe: IActiveDesktop Pin
neliocc8-Jun-05 16:50
neliocc8-Jun-05 16:50 
GeneralRe: IActiveDesktop Pin
ThatsAlok8-Jun-05 18:51
ThatsAlok8-Jun-05 18:51 
GeneralQuestion RE. CriticalSection Pin
Budric B.8-Jun-05 10:26
Budric B.8-Jun-05 10:26 
GeneralRe: Question RE. CriticalSection Pin
Blake Miller8-Jun-05 11:21
Blake Miller8-Jun-05 11:21 
GeneralRe: Question RE. CriticalSection Pin
Axter8-Jun-05 18:52
professionalAxter8-Jun-05 18:52 

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.