LRESULT CALLBACK ForwardButtonProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { BOOL wentForward = FALSE; switch (message) { case WM_LBUTTONUP: gWebView->goForward(&wentForward); default: return CallWindowProc(DefButtonProc, hDlg, message, wParam, lParam); } }
static void NavigateForwardOrBackward(HWND hWnd, UINT menuID) { if (!gWebView) return; BOOL wentBackOrForward = FALSE; if (IDM_HISTORY_FORWARD == menuID) gWebView->goForward(&wentBackOrForward); else gWebView->goBack(&wentBackOrForward); }