Opening 2 windows upon startup
-
Hi all. Do anyone know how to open two windows as soon as I open my application? One window is used to display some output during the running of the application and the other window is used for the user to open some image file. Does anyone know how to do this? Thank you.
-
Hi all. Do anyone know how to open two windows as soon as I open my application? One window is used to display some output during the running of the application and the other window is used for the user to open some image file. Does anyone know how to do this? Thank you.
Hi... ----- If I understand your question (which I dont). If you want your app to be with multi windows. (*in you example 2 windows*) You can call twice "CreateWindow(...)"
but then you use the same winproc
or You can register 2 difrent classes for 2 diffrent window procs and call "CreateWindow(...)" twice also,but ONE for each registered class
=-=-=-=-=-= The-Server :rose: -
Hi... ----- If I understand your question (which I dont). If you want your app to be with multi windows. (*in you example 2 windows*) You can call twice "CreateWindow(...)"
but then you use the same winproc
or You can register 2 difrent classes for 2 diffrent window procs and call "CreateWindow(...)" twice also,but ONE for each registered class
=-=-=-=-=-= The-Server :rose: -
HI. Thank you for your reply. What I mean is that when I open my application, it will display two blank child windows (frames) instead of the usual one. Hope this is more clear.
I m very sorry... But I dont understand what you want to do. If you are talking about programming in VCPP. Please let me know what are you talking about, I m very intresting in your question... Because I just dont understand it. I have some question for you:
How many windows in total?
(include the main one)How many & what types if windows you have in total?
Also, How many times you need to call **RegisterClass(...)**
=-=-=-=-=-= The-Server :rose: -
I m very sorry... But I dont understand what you want to do. If you are talking about programming in VCPP. Please let me know what are you talking about, I m very intresting in your question... Because I just dont understand it. I have some question for you:
How many windows in total?
(include the main one)How many & what types if windows you have in total?
Also, How many times you need to call **RegisterClass(...)**
=-=-=-=-=-= The-Server :rose:Hi. thank you for your reply. I am using VC++ and mfc in my application. Usually if you create a MDI application, when you run the program, only one child frame or window is opened. What I wanted to do is that when my application is double clicked, it runs and two blank child windows should be opened instead of just one as in the normal case. So in total, I have the main window, and two child windows inside the main window. I tried using another CView class for the second child window but it did not work. I keep getting the error "COutputView (the class I created) is not a class or namespace name" and I do not know how to resolve it. Hope you understand now. Thank you.
-
Hi. thank you for your reply. I am using VC++ and mfc in my application. Usually if you create a MDI application, when you run the program, only one child frame or window is opened. What I wanted to do is that when my application is double clicked, it runs and two blank child windows should be opened instead of just one as in the normal case. So in total, I have the main window, and two child windows inside the main window. I tried using another CView class for the second child window but it did not work. I keep getting the error "COutputView (the class I created) is not a class or namespace name" and I do not know how to resolve it. Hope you understand now. Thank you.
Yes.. It took me some time, But finally I get it. Sorry to disapoint you, But I didn't work with MFC since 1999... It's about 4 years now. =-=-=-=-=-=- The-Server :rose: