Windows CE & Pocket PC

Moderators: None (Apply to moderate this forum)
Number of threads: 324
Number of posts: 425

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to change the windows' size and position in WindowsCE 6.0 Posted by hoangtuansu on 8 Sept 2010 at 2:17 AM
Hello,

I create an app and in that one, whenever user touchs a button, it'll launch one specified app (such as: IE). But I want it (IE in this case) to appear at the right half of desktop, not full screen. Here's my code:

.....
CreateProcess(..., path to IE file, ...);

//do something to get HWND of IE windows
//then

MoveWindows(HWND of IE windows);

and even used:

SetWindowsPos(HWND of IE windows);

But it's been not successful.

It's not truth that WindowsCE doesn't support the change of position or size of a windows because when I create a app with specified size and specified position, it's ok.

So I don't know how to change size and position of a launched program in WindowsCE from my app. Can anyone tell me?

Any help will be appreciated and sorry for my English skill.

Regards,
HTS
Thread Tree



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.