Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by jasonzhangx

  1. jasonzhangx

    How to have the item, selected by rightclick mouse, highlighted

    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.
  2. jasonzhangx

    winsock send function with WSAENOBUFS and WSAEWOULDBLOCK errors

    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...
  3. jasonzhangx

    How to write a script (.bat file) to create a user defined service

    I found the GUI way to export the branch of the registry to a file. Thanks for the help
  4. jasonzhangx

    How to write a script (.bat file) to create a user defined service

    Thanks for the suggestions. What is the syntax to export the registry to a regfile?
  5. jasonzhangx

    How to write a script (.bat file) to create a user defined service

    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...
  6. jasonzhangx

    Popup Menu just showing up at the top left corner of the screen

    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...
  7. jasonzhangx

    Popup Menu just showing up at the top left corner of the screen

    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.
  8. jasonzhangx

    Popup Menu just showing up 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...

Part and Inventory Search

Back
Top