#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
#include <windows.h>
#include <commctrl.h>
+#include <stdio.h>
+#include <stdlib.h>
#include <tchar.h>
#include "hexedit.h"
dx = hed->LeftMargin;
/* draw address */
- _stprintf(addr, _T("%04X"), linestart);
+ _stprintf(addr, _T("%04lX"), linestart);
TextOut(hDC, dx, dy, addr, 4);
dx += ((4 + hed->AddressSpacing) * hed->CharWidth);
static DWORD
HEXEDIT_HitRegionTest(PHEXEDIT_DATA hed, POINTS pt)
{
- WINDOWINFO wi;
int d;
if(pt.x <= hed->LeftMargin)
hed->hBuffer = LocalReAlloc(hed->hBuffer, hed->MaxBuffer, LMEM_MOVEABLE);
HEXEDIT_Update(hed);
}
+ return 0;
}
/*** Message Proc *************************************************************/