...and the other is the view of the selected object.
Which (I think) would require a separate CView-type class for each. In the pane that controls the list of available objects (e.g., OnItemChanged() method if using CListView), figure out which object is selected and tell the splitter window to change to the corresponding view.
I did this once with a gymnastics-related application. I only had 3 items in the left pane, however.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
Using WritePrivateProfileString I can add a new entry. How can I delete a one
using the same thing. See the parameter values
[in] Pointer to a null-terminated string containing the key to be associated with the string. If the key does not exist in the specified section, it is created. If this parameter is NULL, the entire section, including all entries in the section, is deleted.
[in] Pointer to a null-terminated string to be written to the file. If this parameter is NULL, the key pointed to by the lpKeyName parameter is deleted.
You need to google first, if you have "It's urgent please" mentioned in your question. _AnShUmAn_
I'm wondering how could I read the word behind the mouse pointer. Let's say my app. has a CRichEditView and when user stops moving the mouse I want to grab the word that is under the pointer, so I can show a tooltip with certain info. Yes in a fashion like Visual Studio displays a variable value when you mouse over it in debugging mode.
After googling for a couple of days I've just found some approaches like using IAccessible class from MS Active Accesibility:
Thanks Stephen! It's just the idea I'm working on now, and it seems to be taking me somewhere... after two days wandering around silly approaches.
Just a couple tips for possible readers:
If like me you're playing with OnMouseMove and a CEdit control, remember that
a) It's the control itself not the containing window wich may handle the WM_MOUSEMOVE message (a couple hours lost for a newbie like me). One way to achieve it is to derive your class from CEdit, place the message handler there and bind your ICD_MY_EDIT_THING with a control variable of this class (DDX stuff).
b) Of course it's the control who has to SendMessage(EM_CHARFORMPOS, ...), so do it in the above mentioned message handler.
c) Watch out the difference of SendMessage LPARAM parameter deppending on you're working with a CEdit or a CRichEditCtrl.
Target application just check whether file exists, if does not then create that file.
You can as well create the file from the calling application as well. Why are you needing to have an executable solely for this? Or is there anything else? If the file copying takes too long and that leaves you with a frozen UI, just spawn a thread. Can't you?
You haven't answered my question: Is the target application handling the command line passed on to it? Without that being done, how will it display the command line?
It is a crappy thing, but it's life -^Carlo Pallini
Last Visit: 31-Dec-99 19:00 Last Update: 4-Dec-23 22:07