|
This tag is part of the DOM, right ? So you need to store the path traversal from the root down to this node. It's up to you to find a convenient model. AFAIK, there's no such built-in model provided in the current IE DOM.
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
So the html must have begin tag and end tag,if not. I would not do this feature right? Thx your reply.
|
|
|
|
|
Path traversal has nothing to do with end tags.
We are talking DOM IE API. That's just a matter of root node, and children.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
Sorry. I misunderstand. What is DOM IE API? Where I can find examples?
|
|
|
|
|
How can I change the bitmap of a toolbar button at runtime?
--
Nice greets, Daniel.
|
|
|
|
|
Try using the LoadBitmap() member function of CToolbar class.
|
|
|
|
|
Do you want to use any bitmap, or you just need to switch between some bitmaps you know at compile time?
Tomasz Sowinski -- http://www.shooltz.com
*** Si fractum non sit, noli id reficere. ***
|
|
|
|
|
Only between bitmaps I know at compile time (like a bitmap or a bitmap in a image list).
--
Nice greets, Daniel.
|
|
|
|
|
Use CToolBar::GetToolBarCtrl and CToolBarCtrl::AddBitmap to load bitmap from resource and append it to toolbar's image list, then CToolBar::SetButtonInfo to change the index of button's image. Bitmap should have the dimensions of your toolbar buttons, usually its 16 x 15. RGB(192, 192, 192) - light gray - is used as transparency by MFC toolbars.
Tomasz Sowinski -- http://www.shooltz.com
*** Si fractum non sit, noli id reficere. ***
|
|
|
|
|
Thanks... I try it...
--
Nice greets, Daniel.
|
|
|
|
|
How can I change the title of a dialog at runtime?
I want to add a constructor to my dialog, so that I can set the title of the dialog, like CMyDialog dlg(_T("Settings")); .
I save the title text in the constructor and want to set the title in the OnInitDialog function, but how can I set the title?
--
Nice greets, Daniel.
|
|
|
|
|
void SetWindowText( LPCTSTR lpszString );
|
|
|
|
|
In my application I am using Shellexecute to run SQLs through isql.exe.
I want to trap the exceptions/errors which isql throughs in messagebox dialogs.
Can I trap those messages anyway out.
Souchakra
|
|
|
|
|
Try using SQL Server 2000 commandline tool osql which is the recommended tool for running sql scripts on commandline (if you not need to connect to SQL Server 6.5 or before). All sql server 2000 commandline tool output errors on stdout/stderr and there should be no message box at least. To catch the output it is a good idea to use the -o switch which directs it to the given file. (For more options see sql server 2000 online help "Using the SQL Server Tools)
Possibly the messagebox may occur because ShellExecute is used and has this (configured?) effect for the case of a stderr output?
|
|
|
|
|
Hai Juergen,
Thanx for your urly response.U suggested me of using osql but, I have to use Sybase Anywhere 5.5 which has the rtdsk50 eng free to distibute.For the same I am using isql.exe.
Could u suggest me anything related to this....
|
|
|
|
|
How can I register one file type with my application? I want my application to open all files that have the extension of ".tsx". I also would like to use DDE because I one instance of my program is always running and I do not want to run another instance. All I want is to send a message to the running instance. I am looking forward to hearing from you guys
Mustafa Demirhan
http://www.macroangel.com
Sonork ID 100.9935:zoltrix
<nobr>They say I'm lazy but it takes all my time
|
|
|
|
|
More than one hundred native Windows apps are using DDE file association already. So I guess it's not cumbersome to find them.
First thing to do is in Windows Explorer file association, check the use DDE checkbox, and type Open("%1") as DDE message, and system as Topic. This in itself in almost enough (depending then on how you handle default verbs in your apps).
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
In fact I did that. But when I do that, CWinApp tries to open the file on its own. But what I want is to do different things but I could not figure out how to. I overrided CWinApp::OnDDECommand () but this method is never called
Mustafa Demirhan
http://www.macroangel.com
Sonork ID 100.9935:zoltrix
<nobr>They say I'm lazy but it takes all my time
|
|
|
|
|
You must also have this in your CWinApp implementation :
EnableShellOpen();
RegisterShellFileTypes();
And you have MSDN articles [^]about it.
From a former app I somewhat remember, I also had a WIN32 message loop scrutening for WM_DDE_xxx messages. But this advanced advanced DDE use to transfer data using the clipboard.
sometimes it helps to look at the IL generated code
a MS guy on develop.com "answering" .NET issues
|
|
|
|
|
Thanks a lot. This is a good start for me. But I still get error messages. I added these two lines, but OnDDECommand is never called. All I get is a stupid error message: "Windows cannot find 'c:\temp\yourfile.tsx'. Make sure that you typed the name correctly, and then try again. To search a file, .....". The error message directly comes from Windows Explorer and then my program is executed. But it never calls OnDDECommand . I don't know what's going on there
Mustafa Demirhan
http://www.macroangel.com
Sonork ID 100.9935:zoltrix
<nobr>They say I'm lazy but it takes all my time
|
|
|
|
|
Upps. One correction: First my program is started and then the error message comes directly from Windows Explorer
Mustafa Demirhan
http://www.macroangel.com
Sonork ID 100.9935:zoltrix
<nobr>They say I'm lazy but it takes all my time
|
|
|
|
|
I found my mistake: As the topic in Windows explorer I forgot to write "system". After I made the correction, everthing works great!
Mustafa Demirhan
http://www.macroangel.com
Sonork ID 100.9935:zoltrix
<nobr>They say I'm lazy but it takes all my time
|
|
|
|
|
I've searched high and low for some notification message that is fired when the checked state changes on a list-view with LVS_EX_CHECKBOXES set. It seems a little silly to have to do a hit test every time someone clicks the list-view window and check the mouse coordinates again to see if it falls in the checkbox area.
Am I missing something here?
--charlie
|
|
|
|
|
|
Hello,
I'm interested in expanding my C++ knowledge (OOD, MFC mechanics, etc.) and I would like to get advice on any publications/subscriptions that you folks believe is worth getting. Any ideas? What other resources (books, etc.) do you recommend?
Thanks!
JennyP
|
|
|
|