Movable Window in Windows CE.

Posted on 2006-04-05
Medium Priority
Last Modified: 2012-05-05
Dear Guys.

I want to create a window in windows CE platform, but I want to handle the mouse event for this window so I want to capture the WM_* Mouse events so I can move the window from position to position, I wrote a small program but it cannot capture the mouse masseges.

so please can anyone help me in this program?

Thank you very much.
Question by:MAnkeer
  • 2
LVL 12

Expert Comment

ID: 16380771
If you want to capture the mouse in the window itself then WM_MOUSEMOVE message will do the job.

But if you want to capture the mouse movement system wide then you need to install a mouse hook
See this for details:

If you mean something else then explain it clearly.

Author Comment

ID: 16381589
Yes, thank you for your helping,

Here what I want to do, I want to create a window in windows ce, and I want to move this window and changing it's posotion using the stylus, I wrote the code using WM_MOUSEMOVE, but windows ce does't repaint the window that I created, instead the window disappered, I want to program the same as drag and drop, the stylus will be used as a mouse to drag the window and move it.

I hope this description will help you.

Thank you.
LVL 12

Accepted Solution

rajeev_devin earned 500 total points
ID: 16381703
Try this function when you come out of the handler
BOOL UpdateWindow( );

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question