Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OpenGL Pin
Michael P Butler7-Jun-01 1:30
Michael P Butler7-Jun-01 1:30 
GeneralRe: OpenGL Pin
Ulf Öhlén9-Jun-01 22:56
Ulf Öhlén9-Jun-01 22:56 
GeneralSimpleFrame and Windowless Pin
7-Jun-01 0:30
suss7-Jun-01 0:30 
GeneralRe: SimpleFrame and Windowless Pin
Michael P Butler7-Jun-01 0:33
Michael P Butler7-Jun-01 0:33 
GeneralCopying files Pin
confalonieri6-Jun-01 23:29
confalonieri6-Jun-01 23:29 
GeneralRe: Copying files Pin
Tomasz Sowinski6-Jun-01 23:37
Tomasz Sowinski6-Jun-01 23:37 
GeneralDisplay data in Dialog Box Pin
louis6-Jun-01 23:10
louis6-Jun-01 23:10 
GeneralRe: Display data in Dialog Box Pin
Masaaki Onishi7-Jun-01 4:16
Masaaki Onishi7-Jun-01 4:16 
Hello, the codegurus around the world.;)

CMyListBox *Ref=(CMyListBox *)AfxGetApp()->m_pMainWnd;
ASSERT(Ref); //You will get the assertion failure.
Ref->UpdateListBox();


As long as you use the dailog based application, the above lines is OK
because m_pMainWnd is same as m_pModeless.
However, if you use SDI,m_pMainWnd is the application object of your SDI.
So, I think that this simple works.
if (m_pModeless) {
   m_pModeless->SetFocus(); //might need to execute the process?
   m_pModeless->UpdateListBox();
}




Have a nice day!

-Masaaki Onishi-


GeneralRe: Display data in Dialog Box Pin
louis7-Jun-01 21:20
louis7-Jun-01 21:20 
GeneralGet number of 1s in a set of binary numbers Pin
hearties6-Jun-01 23:04
hearties6-Jun-01 23:04 
GeneralRe: Get number of 1s in a set of binary numbers Pin
Mark Jones6-Jun-01 23:53
Mark Jones6-Jun-01 23:53 
GeneralRe: Get number of 1s in a set of binary numbers Pin
markkuk7-Jun-01 0:38
markkuk7-Jun-01 0:38 
Generalpreviewing word documents Pin
Kannan Kalyanaraman6-Jun-01 21:19
Kannan Kalyanaraman6-Jun-01 21:19 
GeneralChart in VC++ MFC Pin
Aky6-Jun-01 19:59
Aky6-Jun-01 19:59 
GeneralRe: Chart in VC++ MFC Pin
Christian Graus7-Jun-01 13:29
protectorChristian Graus7-Jun-01 13:29 
GeneralWhat's wrong with my code? (class template) Pin
Li Lirong6-Jun-01 19:25
Li Lirong6-Jun-01 19:25 
GeneralRe: What's wrong with my code? (class template) Pin
Vivek Rajan6-Jun-01 20:00
Vivek Rajan6-Jun-01 20:00 
GeneralRe: What's wrong with my code? (class template) Pin
Li Lirong6-Jun-01 21:02
Li Lirong6-Jun-01 21:02 
GeneralRe: What's wrong with my code? (class template) Pin
7-Jun-01 4:23
suss7-Jun-01 4:23 
GeneralRe: What's wrong with my code? (class template) Pin
Ghazi H. Wadi7-Jun-01 14:36
Ghazi H. Wadi7-Jun-01 14:36 
GeneralRe: What's wrong with my code? (class template) Pin
Li Lirong7-Jun-01 17:09
Li Lirong7-Jun-01 17:09 
GeneralRe: What's wrong with my code? (class template) Pin
Jim Crafton7-Jun-01 18:57
Jim Crafton7-Jun-01 18:57 
GeneralScrolling the content Pin
Mangesh Sardesai6-Jun-01 18:55
Mangesh Sardesai6-Jun-01 18:55 
GeneralJoystick / Gamepad Pin
6-Jun-01 16:50
suss6-Jun-01 16:50 
GeneralRe: Joystick / Gamepad Pin
Christian Graus6-Jun-01 16:56
protectorChristian Graus6-Jun-01 16:56 

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.