Thanks Rick, for your response. I am still not getting the behavior I need. I know that pressing the key combination "Alt-Enter" produces the desired effect in the target app. I have confirmed that posting a WM_CLOSE message will close the target app. I can also generate a Message...
I want to send a message to a window in another program which will simulate actual keystrokes in the receiving program. The key combination I want to send is alt-enter.
I have tried:
PostMessage(hWnd, WM_SYSKEYDOWN, VK_RETURN, 1);
but I'm not getting the response I want. I have checked the...
I bought a used copy of Teach Yourself Database Programming with Visual C++, then I learned that the CD with source code, etc. was not in the book. The publisher says the book is out of print, and does not support it. Does anyone know where I might find a copy of the CD?
I would like to be able to map the "My Documents" shortcut to a folder or drive of my choosing. It seems that the link must be mappable, because the system resets it to the logged on user in Win2k. I have searched the registry for "My Documents", but haven't found anything...
I posted this question late Friday, but I'm afraid it may have been overlooked, and is now buried pages deep. Does anyone know how to dynamically find the app path for Windows Explorer? With most apps you can look in the Registry under
"HKLM\Software\Microsoft\Windows\CurrentVersion\App...
Does anyone know how to dynamically find the path for Windows Explorer? Normally, you can look in the Registry under "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths", but windows explorer isn't listed there. Is it an "SH" type function? Thanks
Does anyone have some sample code for building a treeview in an ATL Windows program. I have made treeviews in MFC without problems. My code looks good, but nothing is showing up, so I must be missing something.
Thanks
Thanks. I'll read up on it. I had in mind a utility that sits in the tray, with a right-click (and/or left-click) menu. I can do the tray icon, but didn't know how to get rid of the FrameWnd.
I'm not sure if you mean you want to print a screen capture of your dialog box, or something else. If you want just a "picture" of your dialog box, bring it up on the screen and make sure that window has focus. Then press Alt-Print Screen, which places the image on your clipboard...
Go to Project/Add to Project/Components and Controls, then click Visual C++ Components, and you will see Splash Screen as one of the components. It is fairly esy to set the time the splash screen will display.
I believe the clw file is for the class wizard. Unfortunately, the wizard gets very unhappy if you mess with it. I would try removing the .clw file from your project and save it in a safe place. VC++ MIGHT even give you the opportunity to recompile so that it can make another .clw file that...
What about declaring the global in a .cpp file? You may have to experiment to make sure the .cpp that has the global gets compiled first, so that when the compiler encounters it in the other .cpp, it will have already "seen" it.
Another option, considered safer by many C++'ers, is to...
Just for clarity...this is a simple project I am working on...a test bed, really, with no dll's, COM, etc.
A mentor of mine suggested that if some file(s) were created with a Late date, say, 2001, this will force the guarantee the message appearing. The truth is, I haven't taken the time to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.