I had to combine MFC and WinAPI: add WINAPI code to MFC, the following are MFC and WinAPI code:
MFC code
void MyMFCView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
......
}
WinAPI code
LRESULT CALLBACK Win32Fun(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
......
}
Can I do like this:
void MyMFCView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
Win32Fun(hwnd, msg, wParam, lParam);
}