Use a combination of OnMouseDown/Up(), CTreeCtrl::GetSelectedItem(), and CTreeCtrl::GetItemRect(). John
John Ulvr
Posts
-
TreeView Control -
New to Com - is Com the way to go?I am very new to COM, and don't have a full understanding of what it does. I'd like the opinions of some seasoned COM programmers before I continue down the COM path. I have a program with a server and several clients, which all run on the same CPU. The server sends and recieves very simple (four byte) messages from the clients. I want a client to be an executable that someone starts, and, if the server is not running, starts the server. Outside of that, the messages should be treated as mailbox messages. I also want to allow other people to develop thier own clients. The question I have is, should I be using COM, windows-messaging, or a combination of the two? Thanks John
-
ShellExecute open problemIt seems that when I use shellExecute(.. open, url ...), where url has a bookmark, it does not always work. That is, I sometimes have to run the command two or three times before it goes to the right bookmark. I am using VC++6.0, and iexplorer (for Windows 2000). Any comments would greatly be appreciated!
-
Opening Bookmarked HTML filesI am trying to open an htlm file to a specific bookmark without any success. I am tyring to use the ShellExecute command as follows: ShellExecute(0, "open", "c:\test.html#Bookmark1", NULL, NULL, SW_SHOWNORMAL); The result is that the program opens test.html in explorer, but does not got to Bookmark1. Is there any way to do this? And while I'm on the subject, is there any way to do the same thing with PDF files (open a PDF file to a specific location?) Thanks, John
-
Opening just one instanceI linked a file type with my program, such that if you double click on a file in explorer, it opens the file using my program. The only problem is if there's an instance of the program already open I want that instance to open the file rather than starting a new instance. (for example, if you double click a .doc file, you do not want start a new Word session if one is already open. Instead you want the existing word session to open the document). Anyone have any ideas on the best way to do this? John