How to put buttons on the titlebar


P

PR

I am developing a Windows CE application (not Pocket PC or Smartphone) using
Compact Framework. I would like put the OK button on the title bar of the
application similar to some of the Microsoft applications that ship with
Handheld and Windows CE devices. How can I do that?

Thanks
PR
 
Ad

Advertisements

P

PR

I was able to put OK button on the titlebar by doing a SetWindowLong
(PInvoke) with WS_EX_CAPTIONOKBTN style. But I need to figure out how to
trap the OK button click. I am not sure what message is sent on OK button
click. Right now, nothing happens on OK button click. Any help?

Thanks
PR
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top