Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help me! Pin
Christian Graus27-Aug-02 18:37
protectorChristian Graus27-Aug-02 18:37 
GeneralScroll bar thumbs size Pin
alex.barylski27-Aug-02 15:04
alex.barylski27-Aug-02 15:04 
GeneralRe: Scroll bar thumbs size Pin
Ernest Laurentin27-Aug-02 18:15
Ernest Laurentin27-Aug-02 18:15 
GeneralRe: Scroll bar thumbs size Pin
alex.barylski27-Aug-02 21:57
alex.barylski27-Aug-02 21:57 
GeneralRe: Scroll bar thumbs size Pin
alex.barylski28-Aug-02 0:30
alex.barylski28-Aug-02 0:30 
GeneralRe: Scroll bar thumbs size Pin
Andreas Saurwein28-Aug-02 1:17
Andreas Saurwein28-Aug-02 1:17 
GeneralUpdating from Dialog to Document Pin
RalfPeter27-Aug-02 13:44
RalfPeter27-Aug-02 13:44 
GeneralRe: Updating from Dialog to Document Pin
Chris Losinger27-Aug-02 14:03
professionalChris Losinger27-Aug-02 14:03 
do it like this:

void CMyDoc::FunctionThatLaunchesTheDialog()
{
  CMyDialog theDlg;
  theDlg.m_variableOne = m_something;
  theDlg.m_variableTwo = m_somethingElse;
  if (theDlg.DoModal() == IDOK)
  {
    m_something = theDlg.m_variableOne;
    m_somethingElse = theDlg.m_variableTwo;
  }
}


your dialogs should almost never have to know about your document class.

-c


A man is like a rusty wheel on a rusty cart,
He sings his song as he rattles along and then he falls apart.
-- Richard Thompson

GeneralRe: The other way ... Pin
Masaaki Onishi27-Aug-02 16:51
Masaaki Onishi27-Aug-02 16:51 
GeneralRe: Updating from Dialog to Document Pin
John Oliver27-Aug-02 22:51
John Oliver27-Aug-02 22:51 
GeneralRe: Updating from Dialog to Document Pin
John Oliver27-Aug-02 23:33
John Oliver27-Aug-02 23:33 
GeneralUpdate controls in timer, doesn't update Pin
jimNLX27-Aug-02 11:57
jimNLX27-Aug-02 11:57 
GeneralRe: Update controls in timer, doesn't update Pin
Christian Graus27-Aug-02 12:02
protectorChristian Graus27-Aug-02 12:02 
GeneralRe: Update controls in timer, doesn't update Pin
jimNLX27-Aug-02 12:03
jimNLX27-Aug-02 12:03 
GeneralRe: Update controls in timer, doesn't update Pin
Christian Graus27-Aug-02 12:17
protectorChristian Graus27-Aug-02 12:17 
GeneralRe: Update controls in timer, doesn't update Pin
Andreas Saurwein27-Aug-02 13:33
Andreas Saurwein27-Aug-02 13:33 
GeneralRe: Update controls in timer, doesn't update Pin
jimNLX28-Aug-02 3:15
jimNLX28-Aug-02 3:15 
GeneralRe: Update controls in timer, doesn't update Pin
Andreas Saurwein28-Aug-02 3:43
Andreas Saurwein28-Aug-02 3:43 
GeneralRe: Update controls in timer, doesn't update Pin
jimNLX28-Aug-02 3:56
jimNLX28-Aug-02 3:56 
GeneralRe: Update controls in timer, doesn't update Pin
Andreas Saurwein28-Aug-02 4:08
Andreas Saurwein28-Aug-02 4:08 
GeneralRe: Update controls in timer, doesn't update Pin
jimNLX28-Aug-02 4:15
jimNLX28-Aug-02 4:15 
GeneralRe: Update controls in timer, doesn't update Pin
Andreas Saurwein28-Aug-02 4:42
Andreas Saurwein28-Aug-02 4:42 
Generalcrash !! Help Pin
ns27-Aug-02 11:41
ns27-Aug-02 11:41 
GeneralRe: crash !! Help Pin
Christian Graus27-Aug-02 12:01
protectorChristian Graus27-Aug-02 12:01 
GeneralMy registry code Pin
Anonymous27-Aug-02 16:21
Anonymous27-Aug-02 16: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.