|
|
The MSHTML control may be preventing it from being passed on. You could try putting a PreTranslateMessage() into your derived view and/or MainFrm.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Thks for your answer. Even in the PreTranslateMessage, I can't receive the WM_SETFOCUS message! Where is the pb?
<br />
BOOL CMyHtmlEditCtrl::PreTranslateMessage(MSG* pMsg)<br />
{<br />
if (pMsg->message==WM_SETFOCUS)<br />
AfxMessageBox ("Focus!");<br />
<br />
return CHtmlEditCtrl::PreTranslateMessage(pMsg);<br />
}
Thks in advance!
Appstmd
http://www.appstmd.com
|
|
|
|
|
|
Thks for your help!
I will explore the web sites you give me.
When the control gets focus, I see that it receives the 0x0118 message, but I don't have further information about this message. I will use it instead of WM_SETFOCUS.
Appstmd
http://www.appstmd.com
|
|
|
|
|
Appstmd wrote:
I see that it receives the 0x0118 message
This appears to be undocumented so using it is not wise.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
This is for an MDI program (mfc) with visual c++ 6.0
Probably a pretty easy question:
I am using CFileDialog for open/save as file operations. I want to be able to create an instance of the dialog, change the working directory in code at runtime, and then domodal() having the dialog show the directory i specified as the current directory. I'm able to get the directory names i want to use in the format CString (i.e. "c:\project\dbc") and i want to use this path/directory string to change the directory but i can't seem to figure out how to do it.
Jeff Rothenberg
Project Engineer
Vector CANtech, Inc.
|
|
|
|
|
You need to set the lpstrInitialDir member of the OPENFILENAME member struct (m_ofn) in the CFileDialog class. See the doc for more info.
onwards and upwards...
|
|
|
|
|
Thanks, that works great. I must have missed that m_ofn data item.
Jeff Rothenberg
Project Engineer
Vector CANtech, Inc.
|
|
|
|
|
I am trying to get the text out of an AOL Messenger Chat session. AIM has an Internet Explorer Server, but after I get a handle for it and try to read the text, I come up with an empty string.
Here are the steps that I am doing
I get a reference to a IHTMLDocument2 interface
from that I get a pointer to IHTMLElement interface by calling the get_body function from the IHTMLDocument2 interface.
Then I call the following functions out of desperation on the IHTMLElement Inface
get_innerHTML returns blank
get_innerText return blank
get_outerText return blank
get_outerHTML returns "<BODY><XMP></XMP></BODY>"
I tried the same thing with Yahoo Messenger and it worked perfectly.
Any suggestions
Thanks
Saquib
|
|
|
|
|
Try the GetDocumentHTML method which returns the entire HTML code.
Thks in advance!
Appstmd
http://www.appstmd.com
|
|
|
|
|
I just realized that the text window in AIM is Ate32Class.Any ideas on how can I get the text from this window?
Thanks
Saquib
|
|
|
|
|
GetWindowText()?
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Hi
Thanks for your help
GetWindowText() only works if the window is owned by the process calling this function. So that wont work for me but I tried sending the WM_GETTEXT message and that worked.
Thanks Again.
Saquib
|
|
|
|
|
Hi,
I am working on a project in which has two parts, one is a Windows NT/2K service and other is an Administrative GUI part. I need to communicate between two application, so that the application can access the data of service. I think IPC is used for completion of this task. But I have no idea how to implement this, some beginer or introductory level material will be helpful...
thanks in advance
|
|
|
|
|
I maybe way off on this one but have you looked at using mail slots.
Checkout the following article, they might be of some help
http://www.codeproject.com/useritems/fakesend.asp?target=mailslots
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/mailslot_functions.asp
Saquib
|
|
|
|
|
Hello,
I always lose the connection to a client, when I send data and want to receive data again. I don't know why.
1. AcceptEx()
2. ReadFile() <- at this point I received the last data
3. WriteFile() <- I think I lose the connection at this point!
4. ReadFile()
5. WriteFile()
6. ReadFile()
.
.
.
----
What am I doing wrong? I hope you can help me,
bond006
|
|
|
|
|
Do you develop both the server and client?
Kuphryn
|
|
|
|
|
I only develop the server. The client is working well with other servers and it is open source.
|
|
|
|
|
Okay. It is up to the developers who are working on the client to get it to synchronize with your server.
Kuphryn
|
|
|
|
|
double-post, because I got an error message first
|
|
|
|
|
I need to get some memory information in my program
Amount of memory in computer.
Available memory.
How much memory my program currently occupies.
Anyone know how to do it or where I should look.
|
|
|
|
|
GlobalMemoryStatus is what you are searching for.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks. It solved 2 out of 3 problems..
Still have one problem. How do I find out how much memory my program already has allocated? Like in TaskManager, where I can go and see how much memory a program takes. But I need to do it in code in runtime.
|
|
|
|
|
I'm sorry I can't help you with the third problem
modified 12-Sep-18 21:01pm.
|
|
|
|