Click here to Skip to main content
15,914,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I change caption page of Property Sheet at runtime Pin
Ravi Bhavnani6-Apr-07 19:16
professionalRavi Bhavnani6-Apr-07 19:16 
GeneralRe: How can I change caption page of Property Sheet at runtime Pin
dungpapai8-Apr-07 15:48
dungpapai8-Apr-07 15:48 
QuestionRadio button event handle problem in win32 Pin
amitmistry_petlad 6-Apr-07 18:08
amitmistry_petlad 6-Apr-07 18:08 
QuestionFree/total RAM? Pin
dontknowitall6-Apr-07 16:19
dontknowitall6-Apr-07 16:19 
AnswerRe: Free/total RAM? Pin
Ravi Bhavnani6-Apr-07 16:27
professionalRavi Bhavnani6-Apr-07 16:27 
GeneralRe: Free/total RAM? Pin
dontknowitall6-Apr-07 16:48
dontknowitall6-Apr-07 16:48 
Questionchild dialog box? Pin
iayd6-Apr-07 11:11
iayd6-Apr-07 11:11 
AnswerRe: child dialog box? Pin
Ravi Bhavnani6-Apr-07 16:25
professionalRavi Bhavnani6-Apr-07 16:25 
Here's one way:
  1. Add a public method to your first dialog box, that appends a letter to the edit control. For example:
    void CFirstDlg::TypeLetter
      (CString theLetter)
    {
      CString strText;
      CEdit* pEditBox = GetDlgItem (IDC_EDIT_BOX)
      pEditBox->GetWindowText (strText);
      strText += theLetter;
      pEditBox->SetWindowText (strText);    <code>// append typed letter</code>
      int nLen = strText.GetLength();
      pEditBox->SetSel (nLen, nLen, TRUE);  <code>// position cursor at end</code>
    }
    
  2. When you create your second dialog, pass it a pointer to the first dialog box. In the button handlers of your second dialog box, "send" the typed keystroke to the first dialog box. For example:
    void CSecondDlg::TypeD()
    {
      m_pFirstDlg->TypeLetter ("D");
    }
    
/ravi

This is your brain on Celcius
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com

QuestionRe: child dialog box? Pin
iayd6-Apr-07 21:07
iayd6-Apr-07 21:07 
QuestionRe: child dialog box? Pin
Hamid_RT6-Apr-07 21:58
Hamid_RT6-Apr-07 21:58 
AnswerRe: child dialog box? Pin
iayd6-Apr-07 22:24
iayd6-Apr-07 22:24 
GeneralRe: child dialog box? Pin
Hamid_RT7-Apr-07 0:13
Hamid_RT7-Apr-07 0:13 
AnswerRe: child dialog box? Pin
Ravi Bhavnani7-Apr-07 4:03
professionalRavi Bhavnani7-Apr-07 4:03 
GeneralRe: child dialog box? Pin
iayd8-Apr-07 21:17
iayd8-Apr-07 21:17 
QuestionRestrict Collapsing items in tree control Pin
Super Hornet6-Apr-07 10:46
Super Hornet6-Apr-07 10:46 
AnswerRe: Restrict Collapsing items in tree control Pin
Michael Dunn6-Apr-07 11:44
sitebuilderMichael Dunn6-Apr-07 11:44 
GeneralRe: Restrict Collapsing items in tree control Pin
Super Hornet7-Apr-07 0:47
Super Hornet7-Apr-07 0:47 
QuestionClass Member Declaration Problem Pin
all_in_flames6-Apr-07 10:18
professionalall_in_flames6-Apr-07 10:18 
AnswerRe: Class Member Declaration Problem Pin
David Crow6-Apr-07 10:45
David Crow6-Apr-07 10:45 
AnswerRe: Class Member Declaration Problem Pin
Michael Dunn6-Apr-07 11:46
sitebuilderMichael Dunn6-Apr-07 11:46 
JokeRe: Class Member Declaration Problem Pin
all_in_flames6-Apr-07 15:08
professionalall_in_flames6-Apr-07 15:08 
QuestionCreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
pnok6-Apr-07 6:37
pnok6-Apr-07 6:37 
AnswerRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
Mark Salsbery6-Apr-07 6:51
Mark Salsbery6-Apr-07 6:51 
GeneralRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
led mike6-Apr-07 7:15
led mike6-Apr-07 7:15 
GeneralRe: CreateCompatibleBitmap out of memory - capturing 30 images/sec Pin
Mark Salsbery6-Apr-07 7:21
Mark Salsbery6-Apr-07 7:21 

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.