2

对于这个例子,我正在谈论挂钩 BeginPaint(),我已经很好地挂钩了,我通常可以在调用前访问所有内容......

HDC WINAPI Mine_BeginPaint(HWND hWnd, LPPAINTSTRUCT lpPaint)
{


   // do stuff here, inspecting PRE-CALL lppaint struct etc...

    return fpBeginPaint(hWnd, lpPaint);


}

我正在寻找一种方法来检查这个 lpPaint 结构调用后,我该怎么做?

4

1 回答 1

2
HDC WINAPI Mine_BeginPaint(HWND hWnd, LPPAINTSTRUCT lpPaint){
    // do stuff here, inspecting PRE-CALL lppaint struct etc...
    HDC result = fpBeginPaint(hWnd, lpPaint);
    //inspect here whatever you want.
    return result;
}
于 2012-04-08T02:57:26.777 回答