winport - NitroFS viewer:

- fix double click bug on folders;
This commit is contained in:
mtabachenko 2013-09-01 11:53:00 +00:00
parent 966f44785b
commit c19e4d2b94
1 changed files with 14 additions and 7 deletions

View File

@ -221,9 +221,13 @@ BOOL CALLBACK ViewFSNitroProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
return TRUE; return TRUE;
case ID_FSNITRO_VIEW: case ID_FSNITRO_VIEW:
if (currentFileID < 0xF000)
{
if (RegWndClass("MemView_ViewBox", MemView_ViewBoxProc, 0, sizeof(CMemView*))) if (RegWndClass("MemView_ViewBox", MemView_ViewBoxProc, 0, sizeof(CMemView*)))
OpenToolWindow(new CMemView(MEMVIEW_ROM, fs->getStartAddrById(currentFileID))); OpenToolWindow(new CMemView(MEMVIEW_ROM, fs->getStartAddrById(currentFileID)));
return TRUE; return TRUE;
}
return FALSE;
case ID_EXTRACTFILE: case ID_EXTRACTFILE:
case ID_EXTRACTALL: case ID_EXTRACTALL:
@ -276,10 +280,13 @@ BOOL CALLBACK ViewFSNitroProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
switch (notify->code) switch (notify->code)
{ {
case NM_DBLCLK: case NM_DBLCLK:
case ID_FSNITRO_VIEW: if (currentFileID < 0xF000)
{
if (RegWndClass("MemView_ViewBox", MemView_ViewBoxProc, 0, sizeof(CMemView*))) if (RegWndClass("MemView_ViewBox", MemView_ViewBoxProc, 0, sizeof(CMemView*)))
OpenToolWindow(new CMemView(MEMVIEW_ROM, fs->getStartAddrById(currentFileID))); OpenToolWindow(new CMemView(MEMVIEW_ROM, fs->getStartAddrById(currentFileID)));
return TRUE; return TRUE;
}
return FALSE;
case NM_RCLICK: case NM_RCLICK:
{ {