win32gui patches (from Yitzhak)
[...] One of them deals with the patch you just sent, that changes the name but does so more extensively, particularly, also in the Save dialog in mhmain.c. Another is one of the changes to winhack.rc to make it compile under Borland. This also (beyond patches I sent): fixes no Options prompt bug, and fixes up the menu bar (which I broke in one of my patches). Tested on msc/bcc tty/win makefiles and vc ide.
This commit is contained in:
+2
-1
@@ -7,6 +7,7 @@
|
||||
#include "mhmain.h"
|
||||
#include "mhmsg.h"
|
||||
#include "mhfont.h"
|
||||
#include <commctrl.h>
|
||||
|
||||
#define MENU_MARGIN 0
|
||||
#define NHMENU_STR_SIZE BUFSZ
|
||||
@@ -312,7 +313,7 @@ BOOL CALLBACK MenuWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
} break;
|
||||
|
||||
case NM_CLICK: {
|
||||
LPNMITEMACTIVATE lpnmitem = (LPNMITEMACTIVATE) lParam;
|
||||
LPNMLISTVIEW lpnmitem = (LPNMLISTVIEW) lParam;
|
||||
if( lpnmitem->iItem==-1 ) return 0;
|
||||
if( data->how==PICK_ANY ) {
|
||||
SelectMenuItem(
|
||||
|
||||
Reference in New Issue
Block a user