|
You might have to "move" the dialog for a long time before it becomes visible.
Be sure to trace some information in your dialog class upon handling the Move messages so that you can get an idea of what is going on with your dialog.
Peace!
-=- James
Tip for inexperienced drivers: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"! Articles -- Products: Delete FXP Files & Check Favorites
|
|
|
|
|
Hi,
could someone help me ! I would like to create multiple windows (or pages) when creating my mainframe in my Windows MFC project. How do I do that ?
With regards
Jens Christiansen
|
|
|
|
|
If you're talking about creating multiple views of your document, you can always use the splitter control. Check out the MSDN documentation[^] that has a couple sample code on this.
I Dream of Absolute Zero
|
|
|
|
|
no, actually I would like to have multiple windows filling the hole frame, as if they were created by "New Window" or "New File" in my menu.
|
|
|
|
|
Call OnFileNew function multiple times !
VikramS
|
|
|
|
|
This is working, but then I don't go through my MainFrame which is controlling my toolbars and menu's. So would it be possible to create the windows (pages) and control then in the MainFrame ?
|
|
|
|
|
What you are referring to is a multiple-document interface (MDI). Examples are bountiful.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
yes, but I would like my application to work with exact lets say 4 windows (pages) and no option to create more.
|
|
|
|
|
The number of open documents can easily be controlled.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi,
I'm working on a project in which I need to load and install a USB device driver as part of my setup procedure. So I'm basically messing around trying to get this device installed manually, before I add it to the setup script.
I have a problem though... After my latest attempt, I get this error message in the device properties box:
"This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)"
Does anyone know if there's a log somwhere or somthing which I can use to find out what exactly went wrong?
Joel Holdsworth
|
|
|
|
|
the file ist called setupapi.log and should be located in the windows directory.
Don't try it, just do it!
|
|
|
|
|
Hi
What are the advantages/disadvantages of using #define or pany precompiler directives?
Thanks in adavnce
Ram
|
|
|
|
|
The precomiler is both a blessing and a curse. It can really help you work round obstacles, but it can often have problems with compatibility with other compilers.
The main statments like #define, #ifdef, #ifndef, #endif and so on will work on any compiler. Others like #pragma once will only work on MSVC.
#define is useful in defining constants, and in activating and deactivating sections of code. However if you plan to use #define for constants, it's always better to use a global C constant instead:
const unsigned int MyValue = 100; Because the syntax checker can dig you out of problems this way. Also, try and avoid macros - use inline functions instead because again you may end up with crazy inexplicable compiler errors.
Joel Holdsworth
|
|
|
|
|
The main advantage is with proper use of the precompiler directives you can win the Internation Obfuscated C code contest
The other time you will see it is in header files, to make sure that the header isn't accidently included twice. The rule is if there is a way to do what you want without using the precompiler do it, but sometimes you don't have a choice.
If you don't know what the IOCCC is, check it out when you are prepared to be confused. Good programs will enjoy it, for the joke, the chance to learn some really stupid code, and to test the knowledge of C.
|
|
|
|
|
How to Create Process on remote server?
VikramS
|
|
|
|
|
|
To Hello,
I have a expansion card which has a connection to interrupt 15 pin of the PC.
How do I use VC++ 6.0 to detect the interrupt and do the necessary processing?
Is there any examples or articles that I can refer to?
Thanks.
S1189216G
|
|
|
|
|
Hi,
Use SDK coming with your card.
Otherwise, you should write own Windows driver using DDK.
Windows API doesn't allow working with the interruptes directly.
Sincerely Yours,
RadioShark
|
|
|
|
|
To RadioShark,
Thanks for your reply.
Any examples, links or article that I can go to?
Can I use C code interrupt handler?
If yes, how should be done?
S1189216G
|
|
|
|
|
Working with the interruptes and IOports directly is allowed in MSDOS. So, you can use C or C++ for MSDOS.
In MS Windows, you should write own driver. You will find the examples of driver in DDK.
Sincerely Yours,
RadioShark
|
|
|
|
|
Hi All
does ne1 know how to programatically change the title of an application
when i say title i mean, whats in the blue bar at the top of your app
thanks
si
|
|
|
|
|
If you are talking MFC then use: CMainFrame::OnUpdateFrameTitle()
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
You can use SetWindowText()
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Antony M Kancidrowski wrote:
You can use SetWindowText()
This gets overwritten by MFC for the app title bar. See my reply.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Whoops, yes it does, sorry!
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|