开发者

How can I automate checking the menus for integrity in a C++ app?

开发者 https://www.devze.com 2023-01-05 00:07 出处:网络
In my C++ solution there are two projects : a SDI app and a MDI app. Both have quite a lot of menus, and I often make changes (add / delete / replace menus).

In my C++ solution there are two projects : a SDI app and a MDI app.

Both have quite a lot of menus, and I often make changes (add / delete / replace menus).

Instead of checking for correctness myself (I'm error-prone, you know), I would love to have an automation开发者_如何学Python for this.

Ideally it would warn me for either not having a handler for some menu at all, or having no code in the handler, like this :

void CDocument::OnDoThis()
{
}

Do you know any nice way to do this ? ( I am using VS if it matters )


You can send the WM_COMMAND message that the menu would send directly to the window you wish to control.

0

精彩评论

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