What is It?
i have a problem with this question.i really don't understand what it wants? but,i just stopped coding already.i just need some help from guys out there. This where i stopped.i have posted out the code that i am half away doing it. i hope u guys can help me out. Thanks !!
here is the question
create a program that displays a button control on the program's client area at the location where the user clicks the right mouse button.The button must be destroyed and recreated at the cursor location every time the right mouse button is clicked.
hope can solved it for me!!it's really make me nuts!
long FAR PASCAL WndProc(HWND ,UINT, WPARAM,LPARAM);
int PASCAL WinMain(HANDLE hInst,HANDLE hPrevInstance,LPSTR lpszCmdLine,int nCmdShow)
hWnd=CreateWindow("MyClass","Student Pre-App Form",WS_OVERLAPPEDWINDOW,10,10,300,300,NULL,NULL, hInst,NULL);
long FAR PASCAL WndProc(HWND hWnd ,UINT wMessage,WPARAM wParam,LPARAM lParam)
I am not going to solve the problem for you, but you could try using SetWindowPos to the button's hWnd whenever a WM_MOUSEDOWN (or something like that) message comes in..