Click here to Skip to main content
15,929,263 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalpointer to a member function in a derived class Pin
sjcomp4-Jan-05 20:30
sjcomp4-Jan-05 20:30 
GeneralEnabling Scrollbar in a disabled listbox Pin
laavsjj4-Jan-05 19:42
laavsjj4-Jan-05 19:42 
GeneralRe: Enabling Scrollbar in a disabled listbox Pin
KaЯl4-Jan-05 21:21
KaЯl4-Jan-05 21:21 
GeneralTraffic Control APIs Error!!!! Invalid parameter Pin
dharani4-Jan-05 19:16
dharani4-Jan-05 19:16 
GeneralRestricted Execution Pin
pc_dev4-Jan-05 19:15
pc_dev4-Jan-05 19:15 
GeneralRe: Restricted Execution Pin
BlackDice5-Jan-05 6:15
BlackDice5-Jan-05 6:15 
GeneralRe: Restricted Execution Pin
pc_dev6-Jan-05 16:06
pc_dev6-Jan-05 16:06 
GeneralDisable Text Box in dialog Box Pin
Rajesh_K_Sharma4-Jan-05 18:32
Rajesh_K_Sharma4-Jan-05 18:32 
Hi,
I am writting a program using vc++.
My question is-
I have two dialog boxes D1 and D2.Dialog Box D1 contains one command button (Click) and dialog Box D2 contains One text box I would like to do, suppose we press Click button on dialog box D1 then D2 dialog box should be called and text box should be disable.

I would not like to write this code on OnInitDialog()of D2,because I know this codes work well. BOOL CD2:OnInitDialog() {
CDialog::OnInitDialog();
Cedit pEdit;
pEdit=(CEdit*)GetDlgItem(IDC_EDIT1);
pEdit->EnableWindow(false);

return TRUE;
}

Now, I wrote code


void CD1::OnOk()
{
// TODO: Add your control notification handler code here
CD2 d2;
// I would like to write code here for disable text box(IDC_EDIT1) on dialog box D2
d2.DoModal();


}

Please help me.
Any help appreciated.
Regards


rajesh
GeneralRe: Disable Text Box in dialog Box Pin
PJ Arends4-Jan-05 19:03
professionalPJ Arends4-Jan-05 19:03 
GeneralRe: Disable Text Box in dialog Box Pin
John R. Shaw5-Jan-05 9:13
John R. Shaw5-Jan-05 9:13 
GeneralRe: Disable Text Box in dialog Box Pin
Member 15087325-Jan-05 0:24
Member 15087325-Jan-05 0:24 
GeneralI need some pointer help please Pin
fklldsvs4-Jan-05 17:29
fklldsvs4-Jan-05 17:29 
GeneralRe: I need some pointer help please Pin
ThatsAlok4-Jan-05 18:54
ThatsAlok4-Jan-05 18:54 
GeneralRe: I need some pointer help please Pin
John R. Shaw5-Jan-05 9:29
John R. Shaw5-Jan-05 9:29 
Questionhow can i play audio that use vivo's siren codec Pin
stephen_yeerwu4-Jan-05 15:31
stephen_yeerwu4-Jan-05 15:31 
QuestionHow can I share data which contain pointers between processes? Pin
berserkerr4-Jan-05 14:39
berserkerr4-Jan-05 14:39 
AnswerRe: How can I share data which contain pointers between processes? Pin
KaЯl4-Jan-05 21:26
KaЯl4-Jan-05 21:26 
AnswerRe: How can I share data which contain pointers between processes? Pin
Blake Miller5-Jan-05 5:09
Blake Miller5-Jan-05 5:09 
GeneralDoc View question Pin
act_x4-Jan-05 14:24
act_x4-Jan-05 14:24 
GeneralRe: Doc View question Pin
Shog94-Jan-05 14:36
sitebuilderShog94-Jan-05 14:36 
GeneralRe: Doc View question Pin
act_x4-Jan-05 14:47
act_x4-Jan-05 14:47 
Generalchar* from C++ dll in C# Pin
vinayakdl4-Jan-05 12:31
vinayakdl4-Jan-05 12:31 
GeneralRe: char* from C++ dll in C# Pin
Anthony_Yio4-Jan-05 20:53
Anthony_Yio4-Jan-05 20:53 
GeneralMaximizing view Pin
act_x4-Jan-05 10:55
act_x4-Jan-05 10:55 
GeneralRe: Maximizing view Pin
KaЯl4-Jan-05 21:39
KaЯl4-Jan-05 21:39 

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.