|
Yes!
great...
Thank you again!
can I ask you the last question? (I promise this is the last )
If not don't continue reading!
I'll try it:
The first time I try to get the document it's an empty pointer and I cannot get access to it, but the second and the other times I can do it...
Is there any way to create a document for an HTMLView?
Let me promise that I will not bother you again...
Thank you in advance!
|
|
|
|
|
Hmm this is probably some IE specific issue I never heard about, so I am afraid I can't help you in this topic
|
|
|
|
|
Hello again...
I'll post that last question to the general forum... (I don't want to abuse...)
Thank you again! You've helped me a lot
|
|
|
|
|
btw if you look directly to mfc code, that guys does it exactly as we supposed to you:
CComPtr<IDispatch> spDisp = GetHtmlDocument();
mfc, viewhtml.cpp, line 108
|
|
|
|
|
Does anybody has experience in using CRichEditView in a Splitter window?
The scroller of the rich edit view and the scroller of the splitter window are both visible. I can hide the scroller of the rich edit view (only the scroller of the splitter window is visible).
If the rich edit view scrolls (by key up/down) I do not get the scrolling message from the rich edit to update the scroller of the splitter.
Who has ever implemented a rich edit view in a dynamic splitter window?
Does anybody know a sample application?
Berlenz
|
|
|
|
|
But why to not make it vice versa? Hide the scroll bar of slitter window, align your richedit control in all client area of splitter window and all will be pleased.
|
|
|
|
|
I use a "dynamic splitter" window. For that reason I have to show the scroller of the splitter window because it shows the splitter boxes.
Splitter Box:
A small control at the top of the vertical scroll bars or to the left of the horizontal scroll bars in a dynamic CSplitterWnd. Used to create new rows or columns of panes.
Berlenz
|
|
|
|
|
OK.
Then you can use a notify message EN_SELCHANGE, which inform you about cursor position changing. You can find out current line by means of
EM_GETSEL, EM_LINEFROMCHAR, EM_LINEINDEX messages. Then, knowing total count of lines in the edit and current line you can calculate vert. scrollbar's thumb position.
Something similar is possible for horz. scrollbar too
Is it convenient solving for you?
|
|
|
|
|
Hello,
How can i make right aligned Tree control ?
I want to show the icons in right of tree ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
In standard way - nowise. There is only sole method to do it - to write own tree. It might be possible to use ownerdraw style, but as I understood you need to mirror whole tree, with buttons, lines and etc, didn't I? In this case ownerdraw style won't help.
|
|
|
|
|
We are using one ocx control to play our custom files from internet explorer. This main ocx will load more than 10-15 ocx/dlls. At this point it will cause a crash in Windows 95 systems. We are using internet explorer v5.5. McAfee antivirus protection is enabled in the client system. We should have to load one simle ocx control or simple applet, before loading the main ocx(or plugin dll) to get the crash. We are building all the components in this project in release (minimum dependency ) - MFC statically linked.
We can also simulate this problem when loading these components from the creation time of the main ocx(plugin dll)using loadlibray(API).
It is a very critical client side problem and should have to be solved as early as possible. So we want an urgent solution for the same. Looking for a positive support from you.
|
|
|
|
|
I haven't done any GUI stuff in quite a while, so I wonder what I am missing here. MY forte has been mostly backend code and implementing algos. I know I sound like a VB guy (I clicked everywhere but nothing seems to happen!), but I really am so desperate that I really did click everywhere, but nothing seems to happen. Please help me out someone. It's something very obvious, I know, but when I don't get it, I don't get it. I need someone else to tell it to me. All of us have these moments, I am sure.
I have a combo box in a dialog box which shows up as a tab window. I have filled all the data that must initially show up in the combo and specified these styles for it:
visible
tab stop
type: drop list
owner draw: no
vertical scroll
The problem is that when I click on the combo box, it doesn't uh, drop down. Though if I use the up down arrow key, I can navigate through the options. I haven't yet attached any code to it to see if I can get the selected item back, but I am sure I would. What could be the problem? This combo box is inside a tab control which is inside a form view in an SDI app. The dialog box which contains this combo box has the following styles defined:
Style: Child
Border: none
All other check boxes are unchecked.
I tried to do the same thing in another project, a dialog based one, just to test things, and here things are absolutely fine. All the styles are the same, except for the dialog box, but I don't see how that should make any difference.
Someone please help me, I would be very grateful.
Thanks in advance,
Muralia
|
|
|
|
|
Don't feel bad, a friend spent two days trying to figure this out, and I looked at it at least four times before I got it. Go to the dialog editor, click on the arrow in the combo box, and then grab the little box in the middle of the bottom line and drag it down. You're setting how far it will drop, and for some moronic reason, the default is zero, so it won't drop at all.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Wow, that did it! Thanks a lot. You are my saviour!
|
|
|
|
|
Hi,
Is there any way to Invalidate the window without using
Invalidate() or RedrawWindow(..RDW_INVALIDATE )?
|
|
|
|
|
Why do you need another way ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I want to send WM_ERASEBKGND message to the control.
|
|
|
|
|
Neha wrote:
I want to send WM_ERASEBKGND message to the control.
SendMessage(YourHandle, WM_ERASEBKGND, YourHDC,0)????
But for what? It can't give you anything useful. Use InvalidateRect if you want to repaint certain rectangle of the window.
|
|
|
|
|
Use RedrawWindow with the RDW_ERASENOW flag, and if you want a WM_PAINT message to be sent before the function exits use the RDW_UPDATENOW flag as well.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
InvalidateRect, InvalidateRgn, UpdateWindow, ValidateRect adn ValidateRgn are all implemented in terms of RedrawWindow with a different combination of flags.
Just look at the documentation for all of hte flags for RedrawWindow in order to do the task that you are looking to do. You can force the window to repaint before the function returns, or you can simply queue it to repaint a certain portion. You can force the child windows to repaint as well as the parent windows of your current window.
Here is an article that I wrote that goes into detail about RedrawWindow and the update region of a window:
Guide To Win32 Paint for Intermediates[^]
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Hi CPians,
Is there an easy way to detect if a DLL is 16 or 32 bit?
Also what about EXEs?
Regards,
Victor
phpWebNotes is a page annotation system modelled after php.net.
http://webnotes.sourceforge.net/demo.php[^]
|
|
|
|
|
Probably by looking at the header. 16-bit binaries have a NE header, 32-bit have a PE header.
--Mike--
Friday's GoogleFight results: Britney Spears 2,190,000 - Erica Weichers 23
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Thanks for the hint
I had a look at a 16-bit/32-bit EXEs/DLLs and noticed the NE / PE. However, all files start with MZ which most probably reflects a DOS EXE header that acts as the stub. Do you know how to retrieve the information of the NE/PE. I assume the offset in the file might be different due to different stub sizes.
Regards,
Victor.
phpWebNotes is a page annotation system modelled after php.net.
http://webnotes.sourceforge.net/demo.php[^]
|
|
|
|
|
Matt Pietrek, "Windows 95 System Programming Secrets", Chapter 8. May be, it will help you.
|
|
|
|
|
Use SHGetFileInfo.
If uFlags contains the SHGFI_EXETYPE flag, the return value specifies the type of the executable file.
Read in MSDN about SHGetFileInfo.
|
|
|
|