calling another window from dialog box and display data
-
hello friends, I am working with dialog based application,I have created a menu bar for that,Now i want by clicking a menu option like "quote" it will open a another window and from that window function I want to call other function so taht it start display what in that window.How is that possible. By which function i will do this. thanks
-
hello friends, I am working with dialog based application,I have created a menu bar for that,Now i want by clicking a menu option like "quote" it will open a another window and from that window function I want to call other function so taht it start display what in that window.How is that possible. By which function i will do this. thanks
-
hello friends, I am working with dialog based application,I have created a menu bar for that,Now i want by clicking a menu option like "quote" it will open a another window and from that window function I want to call other function so taht it start display what in that window.How is that possible. By which function i will do this. thanks
All you need is have one more modal dialog and then do a DoModal dialog in the menu command handler.
-
hello friends, I am working with dialog based application,I have created a menu bar for that,Now i want by clicking a menu option like "quote" it will open a another window and from that window function I want to call other function so taht it start display what in that window.How is that possible. By which function i will do this. thanks
See
CWnd::GetParent
if Main is Main class you can use this code ion another classCMain* m_Main=(CMain*)GetParent();
m_Main->functiron or data_**
**_
WhiteSky
-
All you need is have one more modal dialog and then do a DoModal dialog in the menu command handler.
Thanks for your reply, Can you pls explain me more.As i am new to CV++ ,so all the concept are not clear to me. If you need more information then pls.
-
See
CWnd::GetParent
if Main is Main class you can use this code ion another classCMain* m_Main=(CMain*)GetParent();
m_Main->functiron or data_**
**_
WhiteSky
Thanks for reply, I need to ask my project is dialog based wil these work with that. If yes what should all other thing/class should i include to make these function work
-
Thanks for your reply, How to catche handle of a window so taht i can call all other function from there.So taht window will start display which i am getting from server.
-
Thanks for reply, I need to ask my project is dialog based wil these work with that. If yes what should all other thing/class should i include to make these function work
Priyanka... Let me know whether you want to create another dialog box from this dialog box? If yes Just place this code in the hanlder of that menu item
CSecondDlg secDlg; secDlg.Domodal();
if this isn't enough come with your next question.KIRAN PINJARLA
-
Priyanka... Let me know whether you want to create another dialog box from this dialog box? If yes Just place this code in the hanlder of that menu item
CSecondDlg secDlg; secDlg.Domodal();
if this isn't enough come with your next question.KIRAN PINJARLA
no kiran i dont want to create second dialog, let me expalin you.... I have function which i am calling through dialog box.now i want that by clicking a button it will open a window(which will open untill click to exit) and from that window i will b able to call all other function so that it will start display the data getting from server. Hope i am clear if not pls remind me Thanks for your reply priyanka -- modified at 1:27 Monday 7th August, 2006
-
Thanks for reply, I need to ask my project is dialog based wil these work with that. If yes what should all other thing/class should i include to make these function work
if your program dialog yes and see
GetParent
in msdn this function obtain a pointer to parent window_**
**_
WhiteSky