开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜