嘿,我正在尝试在 notepad.exe 中创建一个meny
我已经创建了它,但我想在单击重新加载后显示一个消息框
我试过了
#define MSG (WM_APP + 101)
HWND hWnd = FindWindow(NULL,TEXT("untitled - Notepad"));
HMENU hCurrent = GetMenu(hWnd);
HMENU hNew = CreateMenu();
AppendMenu(hCurrent, MF_STRING | MF_POPUP, (unsigned int)hNew, TEXT("TheDragoN"));
AppendMenu(hNew, MF_STRING, MSG, TEXT("Reload"));
AppendMenu(hNew, MF_STRING, 200, TEXT("Credits"));
DrawMenuBar(hWnd);
WPARAM wParam;
switch(LOWORD(wParam))
{
case MSG:
MessageBox(hWnd, L"TSSAA", L"MessSDSageBox",MB_OK);
break;
}
但它没有显示消息框