Dynamically recalculate the toolbar dropdown position
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7024 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8de43bfab1
commit
1d937a6abb
3 changed files with 28 additions and 23 deletions
|
@ -478,13 +478,11 @@ INT_PTR CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam
|
|||
case TBN_DROPDOWN:
|
||||
{
|
||||
LPNMTOOLBAR pToolBar = (LPNMTOOLBAR) lParam;
|
||||
if(pToolBar->hdr.hwndFrom == g_toolbar.hwnd && pToolBar->iItem == IDM_COMPRESSOR) {
|
||||
ShowToolbarDropdownMenu();
|
||||
if (pToolBar->hdr.hwndFrom == g_toolbar.hwnd && pToolBar->iItem == IDM_COMPRESSOR) {
|
||||
ShowCompressorToolbarDropdownMenu(*pToolBar);
|
||||
return TBDDRET_DEFAULT;
|
||||
}
|
||||
else {
|
||||
return TBDDRET_NODEFAULT;
|
||||
}
|
||||
return TBDDRET_NODEFAULT;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue