pyhtang1 wrote: Cause when I add pure Win32 code within the MFC classes like CDialog, it force me to use the MFC function instead the pure Win32 one. For example, when I use the "GetRect(...)" function, it force me to use MFC "GetRect(...)" where the arguments are different from the Win32 one.
Call ::GetRect() instead, to make it unambiguous to intellisense.
GetActiveWindow returns the active window - be it system or the current running program window.
HANDLE h = GetActiveWindow();
///show some other dialog
So whenever there is a system window like error message or battery information, GetActiveWindow returns the handle of this window. The SetForeGroundwindow method then takes the user to the Start menu rather than the previous program window.
Any ideas how to remove this defect. What other method can i use instead of GEtActiveWindow? Can i get window information like is it a system window or my program window. Would GetWindow help in this case?
I have one Cab with the help of which I install few dlls. But after uninstalling that Cab , my dlls are also getting deleted. Is there any mechanism so that after uninstallation of Cab also, dlls will not get deleted.
João, that was a valiant effort, but your method was untenable in our situaion. I did, however, find an alternative. It could be made better, but I simply don't have the time to doink with it any longer.
I'll post an article on it sometime in the near future.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
I need to build a quick and dirty front end for a prototype on a Pocket PC. I don't mind what I use, but I'd prefer C#/.NET, and I don't have any serious graphics experience. The key feature I need is to be able to rotate a graphic - could be a bitmap, or could be dynamically drawn. The functionality I want to reproduce is basically System.Drawing.Drawing2D.Matrix.Rotate() in the full framework, so I can rotate images.
So without having to dive into graphics drawing first principles, and hoping to avoid any explicit math in calculating a redraw, are there any examples or pointers to how to do this in the CF?
I guess I also need to ask about double-buffering and managing the form's background repaint to avoid flicker.
If you think I should stick with C++ for this then I'd be grateful for a pointer or two instead - not asking much
The Math looks helpful, but the CF doesn't support the point that James uses to define the screen coordinates of the (rotated) image vertices. The CF only allows me to specify the (X,Y,Width,Height) at which to draw a bitmap. I think I can use the math however to create a rotated bitmap in memory and draw that at (1,1).
I'm trying to make a little demonstration of WML pages on Smartphones/Pockes PC's. Why is it so hard to get a little emulator for that ? I just installed eVC++ 4.0, sp2, Pocket PC sdk just for a little emulator ...
Now can someone please tell me how to start the emulator, cause there's a lot of documentation on using the emulator but nothing on where is located or how to start it ....
Excuse my stupidity but it's the first time I use these tools ...