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:
nethack.allison
2002-01-27 21:37:31 +00:00
parent 179932310b
commit 6e173ddf5f
6 changed files with 101 additions and 23 deletions
+2 -1
View File
@@ -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(