|
EnumChildWindows - The EnumChildWindows function enumerates the child windows that belong to the specified parent window by passing the handle to each child window, in turn, to an application-defined callback function. EnumChildWindows continues until the last child window is enumerated or the callback function returns FALSE.
|
|
|
|
|
In my main program, I am trying to create a Dialog, where along with the CFileDialog, I should also be able to have my active X. The trouble, I have is that the dialog doesn't show up ance I add the activeX. Without the Active X, It works O.K. Any suggestions would be appreciated.
I am following the example from David J. Kruglinski's Programming Microsoft Visual C++
Thanks in advance
|
|
|
|
|
Hi All,
I just want to disable the ability to switch to other Windows programs, when my programing is running(just like as the login prompt). I thought of using "SetSysModalWindow" but it now it comes under the Obsolete command set. Is there any other method by which we can achieve the same.
Thanx in advance
Sujan
|
|
|
|
|
Two parts required:
1. Install low level keyboard hook and intercept keystrokes that allow you to switch between program, like ALT+TAB for example.
2. Modify the system policy so that the task manager is not invoked.
|
|
|
|
|
Part three: Wait for your users to complain like hell, and rightly so.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
In the case of our application, we do it for security reasons.
Don't want the operator to switch to Solitaire when he should be monitoring the nuclear power plant status...
|
|
|
|
|
Blake Miller wrote:
In the case of our application, we do it for security reasons.
Don't want the operator to switch to Solitaire when he should be monitoring the nuclear power plant status...
That's fine, but I have to wonder whether the original posters app truly has these constraints. There seems to be more and more posts about folks wanting to add global hooks and muck with other applications and that worries me.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Hi Neville,
Our need was also something like blake's. we just want to user to use only our application when our program is running.
Thanx
Sujan
|
|
|
|
|
Blake Miller wrote:
Don't want the operator to switch to Solitaire when he should be monitoring the nuclear power plant status...
Use Windows in a critical application? Shudder.
|
|
|
|
|
Hi Blake,
Thanx for your reply. Now i am implementing it only. I was just curious to know whether there is something like SetSysModalWindow. I got another new concept "GINA". i am reading it also.
Any way Thanx a lot
Sujan
|
|
|
|
|
How can I send a WM_Quit message to a process when all i have is its PID?
Ray
|
|
|
|
|
Perhaps EnumThreadWindows can help.
Don't try it, just do it!
|
|
|
|
|
Hi,
I have created a MDI sing MFC Application.
When I run the application, single empty childframe appears, which i don't want.
Only when the click the 'New' menu/Icon, a new childframe should appear.
Initially, no document should appear.
Could somebody please help me on this. I thank in advance.
Thanx
Mughi
|
|
|
|
|
Add this code to your application InitInstance() just before the call to ProcessShellCommands()
// stop a new document being created if just run normally
if (cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)
{
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
}
If you vote me down, my score will only get lower
|
|
|
|
|
Thank You Roger Allen. It working perfectly.
Thanx
Mughi
|
|
|
|
|
hi!
i wrote an app which captures live video using the directshow api from a webcam. this works fine only when the hardware format is set to RGB (fourcc=0). when the fourcc is different like I420, the video of course is broken. do i need to use the ICDecompressOpen etc. methods to decomress the compressed frame from the DD buffer or is there a better way of decompressing the frames to RGB?
thanks for any hints
|
|
|
|
|
Hi,
Is there any way to get documentation about a visual c++ .dsp file?
I would like to be able to add parameters in the .DSP file. (environment variables for example)
Anyone could give me a good tutorial/link/documentation about this issue?
Thank you,
Jens
|
|
|
|
|
I've written code to read .DSP and .DSW files for ED (see sig). However I'm only interested in extracting folder and filenames and I don't write back to the files. If that's of any interest email me and I'll send you the code.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Hi Franks,
First of all, I am very interested in reading your code that can examine a .dsp file (.dsw is alsoo interesting).
I want to have a better look at what a .dsp contains and really needs.
Can I have your e-mail address please?
Best Regards,
Jens
|
|
|
|
|
|
I've also written code to extract info from .DSP and .DSW files (with Neville's help no less!). My code extracts the files and some of the compiler settings from the .DSP, and extracts the projects from the .DSW.
The code is on CP, in the following article:
http://www.codeproject.com/useritems/includefinder.asp[^]
If you download the source, the files you are interested in are VC6Objects.cpp/h and DSObjects.cpp/h.
Chris Richardson
|
|
|
|
|
Hi,
I wanted to add 'code' into the .DSP file.
I have set an environment variable with text in it ("mylib.lib test2.lib" etc) in it, and i want it to be added in the include list of libs in the project.
Any ideas?
Best regards,
Jens
|
|
|
|
|
Aaarrrggghhh. Recently, some users have been reporting problems with one of my massive MFC apps. Turns out it is leaking 6 HRGN handles everytime a new top-level window is opened (the program uses LOTS of CFrameWnd-derived top-level windows). Over the course of a day, some users are getting thousands of GDI handles leaked. Not good.
After much head scratching and some assistance from Google Groups, I tracked this down to a bug in Windows XP.
http://support.microsoft.com/?kbid=319740
Guess what? MS fixed this bug in XP SP1, but they have REINTRODUCED IT IN SP2!!!! Most of the XP users in our company have already upgraded to Service Pack 2 now too. Sob.
Sigh. So my users have to revert back to "Classic" mode to workaround this problem (no bad thing you might say!) which they are none too pleased about.
And, of course, as this is an MFC-specific issue, they think it is *my* fault as "other apps run fine".
I am praying for MS to release a hotfix but have no idea how I can escalate such a problem.
So fellow CPians - be warned - this bug may be affecting your MFC apps right now...
"May the seed of your loin be fruitful in the belly of your woman"
|
|
|
|
|
What a PITA. I wonder if it is possible to use the XP SP1 Uxtheme.dll mentioned in the KB.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
I'm too chicken to try it! Sigh. The grief I am getting because of this bug...
"May the seed of your loin be fruitful in the belly of your woman"
|
|
|
|