Windows CE & Pocket PC

Moderators: None (Apply to moderate this forum)
Number of threads: 313
Number of posts: 414

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



 

Recent Jobs