LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { char str[256]; RECT rect; //MCI関係 static HWND hMCI; switch (message) { case WM_CREATE: hMCI = MCIWndCreate(hWnd, ((LPCREATESTRUCT)lParam)->hInstance, 0, "G:\\sampleMovie\\AVI-352x240.AVI"); MCIWndGetSource(hMCI,&rect); sprintf_s(str, "%ld", rect.right); MessageBox(0,str,"OK",0); break;
0 件のコメント:
コメントを投稿