Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: overloading across scopes Pin
vikramlinux24-Feb-05 17:13
vikramlinux24-Feb-05 17:13 
GeneralRe: overloading across scopes Pin
Chris Meech25-Feb-05 1:51
Chris Meech25-Feb-05 1:51 
QuestionHow to install VC++ 7.1 only using VS.net 2003 package Pin
thomas yang23-Feb-05 16:07
thomas yang23-Feb-05 16:07 
Generalshockwave flash Pin
vc-programmer-23-Feb-05 15:48
vc-programmer-23-Feb-05 15:48 
GeneralRe: shockwave flash Pin
Basavaraj P.Umadi23-Feb-05 17:04
Basavaraj P.Umadi23-Feb-05 17:04 
Generalabout windows media sdk visualization .... Pin
teremin23-Feb-05 13:43
teremin23-Feb-05 13:43 
GeneralUpdating edit box content in a DialogBar Pin
Will115723-Feb-05 12:01
sussWill115723-Feb-05 12:01 
GeneralRe: Updating edit box content in a DialogBar Pin
Ravi Bhavnani24-Feb-05 3:11
professionalRavi Bhavnani24-Feb-05 3:11 
Imho, the "right" approach to this problem is to dissociate the GUI from the data.

I recommend sending a custom message to each of the dialog bars which causes them to query a central source of data (a pointer to which can be obtained via a public method of your app) and update themselves as needed. This allows the nature of the displayed information to be known only to the dialog bar(s) that display the information.

Your dialog bar(s) would do something like this:
CFooDialogBar::OnUpdateMyself()
{
  CMyData* pData = ((CMyApp *) AfxGetApp())->getData();
  float fValue_1 = pData->getValue_1();
  int nValue_2 = pData->getValue_2();

  ...

  // Update the text in the edit controls (or anywhere else
  // in the dialog bar) as necessary
}
/ravi

My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com

GeneralRe: Updating edit box content in a DialogBar Pin
Anonymous25-Feb-05 17:18
Anonymous25-Feb-05 17:18 
GeneralWinLogon Notification Package Pin
Arthur D23-Feb-05 9:11
sussArthur D23-Feb-05 9:11 
GeneralRe: WinLogon Notification Package Pin
ThatsAlok23-Feb-05 17:21
ThatsAlok23-Feb-05 17:21 
GeneralAdding strings to the string table @ runtime... Pin
Nitron23-Feb-05 7:50
Nitron23-Feb-05 7:50 
GeneralRe: Adding strings to the string table @ runtime... Pin
David Crow23-Feb-05 10:16
David Crow23-Feb-05 10:16 
GeneralRe: Adding strings to the string table @ runtime... Pin
Michael Dunn23-Feb-05 12:46
sitebuilderMichael Dunn23-Feb-05 12:46 
GeneralRe: Adding strings to the string table @ runtime... Pin
Blake Miller24-Feb-05 6:05
Blake Miller24-Feb-05 6:05 
GeneralRe: Adding strings to the string table @ runtime... Pin
Michael Dunn24-Feb-05 6:11
sitebuilderMichael Dunn24-Feb-05 6:11 
GeneralInactive Programs Pin
Pescador3423-Feb-05 7:10
Pescador3423-Feb-05 7:10 
GeneralPlease, help with Parallel Port Pin
mario_o8223-Feb-05 6:26
mario_o8223-Feb-05 6:26 
GeneralRe: Please, help with Parallel Port Pin
Budric B.23-Feb-05 7:43
Budric B.23-Feb-05 7:43 
GeneralRe: Please, help with Parallel Port Pin
mario_o8223-Feb-05 9:40
mario_o8223-Feb-05 9:40 
GeneralRe: Please, help with Parallel Port Pin
Budric B.23-Feb-05 9:56
Budric B.23-Feb-05 9:56 
GeneralRe: Please, help with Parallel Port Pin
Blake Miller24-Feb-05 6:09
Blake Miller24-Feb-05 6:09 
GeneralRe: Please, help with Parallel Port Pin
mario_o8225-Feb-05 3:36
mario_o8225-Feb-05 3:36 
GeneralRe: Please, help with Parallel Port Pin
Blake Miller25-Feb-05 4:50
Blake Miller25-Feb-05 4:50 
GeneralRe: Please, help with Parallel Port Pin
Ryan Binns23-Feb-05 16:57
Ryan Binns23-Feb-05 16:57 

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.