I am using TreeView control to list item. When the program begins, the first toppest item is alway highlighted. When I rightclick mouse on an item, it is not highlighted. Any suggestion?
Thanks in advance.
I am using winsock's send function to send msgs. I set the socket as nonblocking and and buff size (option SO_SNDBUF) as 2048. All msgs's length are the same and less than 2048. My program runs in about 14 hours and got WSAENOBUFS error (no buffer space is available).
If the option SO_SNDBUF is...
I have more than 50 machines (W2K) to install a user-defined service using:
INSTSRV.EXE
SVRANY.EXE
Is there a way to write a script to install the service automatically. Especially, I am interested in how to write the part to edit registry. The manual procedure is like...
I found the solution. Before calling TrackPopupMenu(...), the point should be converted with ClientToScreen(&point) as follow:
.
.
.
ClientToScreen(&point);
pContextMenu->TrackPopupMenu(TPM_CENTERALIGN
|TPM_RIGHTBUTTON |TPM_LEFTBUTTON...
Thanks for the suggestions. I tried them, but the menu is stilling keeping showing up at the top left corner of the computer screen. I draged the windows to far away from the top left corner, but the menu is still keeping showing at the top left corner of the screen.
I am building an explorer like GUI using contextmenu. The section of triggering the menu is as follow:
CMenu menu;
menu.LoadMenu(IDR_MENU_Phi);
CMenu *pContextMenu=menu.GetSubMenu(0);
ASSERT(pContextMenu);
pContextMenu->TrackPopupMenu(TPM_CENTERALIGN...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.