예제 #1
0
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);
    }
}
예제 #2
0
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);
}