开发者

How to send message from one dialog to another?

开发者 https://www.devze.com 2022-12-23 07:28 出处:网络
I was given a task. First dialog based application has 4 buttons (up, down, left, right). Second dialog based application has

I was given a task.

First dialog based application has 4 buttons (up, down, left, right). Second dialog based application has two controls (e.g. text area, button). When on the first dialog I click "left" button - controls on the second dialog must move to t开发者_开发技巧he left.

But unfortunately I don't know Win32 API at all. How can I implement it? What kind of Win32 API mechanism should I be using? Thanks.


If you got handles (HWND) to the controls on the other dialog then you can use the Win32 MoveWindow api call to move them.

When reading the api documentation it might be useful to remember that everything (buttons, list boxes, combo boxes etc) is a window...

0

精彩评论

暂无评论...
验证码 换一张
取 消