|
Yes i can get the GetHeight,GetWidth function but again from that just i can get the height of the window without scrollbars which is not the whole size of the html document.
Regards
Shikha
Pune
|
|
|
|
|
Shikha Jain wrote: In the WebBrowser application how to get the size of the window which includes the Html document in it , and the scrollbars also.
is api GetWindowRect of any use?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Thanks for your reply,
But GetClientRect() only gives the client area size of the window i want the whole page size of the html document i.e with the scrollbars also.
Regards
Shikha
Netstudio,Pune
|
|
|
|
|
Actualy in the previous mail it is by mistake i have written GetClientRect .
yes GetWindowRect you have suggested ,
i have tried that but it again gives the size of the window excluding the scrollbars i.e not the whole html document size .
Regards
Shikha
Pune
|
|
|
|
|
Supposing you actually need the full size of the HTML document, including the parts out of client area, a possible solution can look like this:
CComPtr< IHTMLDocument3 > doc = (IHTMLDocument3*)GetHtmlDocument();
IHTMLElement * doc_element;
doc->get_documentElement(&doc_element);
CComQIPtr<IHTMLElement2> element = doc_element;
long width;
long height;
element->get_scrollWidth(&width);
element->get_scrollHeight(&height);
Please note that the sizes are available only for fully loaded HTML documents, when GetReadyState() returns an appropriate value.
Hope this is what you need in your HTML-capturing application.
|
|
|
|
|
Hi,
I have a program coded in vc++6 and ms access as the database.The data connection is done using DAO.
Suppose I run this program on a computer that does not have microsoft office installed, will it still work? i.e. will it still be able to connect to the database?
If not, will installing the microsoft jet engine be sufficient?
Thanks,
Tara
Fortitudine Vinsinues!
-- modified at 4:22 Sunday 4th June, 2006
|
|
|
|
|
You dont need to install MS Office, but you have to install MDAC. Jet engine will come as part of MDAC.
cheers..Milton KB
|
|
|
|
|
Milton KB wrote: install MDAC
Please can you tell me what is MDAC. Is it something which is freely available?
Tara
Fortitudine Vinsinues!
|
|
|
|
|
|
Thanks a lot, Sir.
Fortitudine Vinsinues!
|
|
|
|
|
|
why u have used negative values in the code? it is a 2d cordinate, and starting from 0,0 values.
pls change the code with positive values and check it
SaRath.
"Don't Do Different things... Do Things Differently..."
|
|
|
|
|
See here maybe it is some helpful to you
<br />
PRINTDLG pd;<br />
DOCINFO di;<br />
memset((void *)&pd, 0,sizeof(PRINTDLG));<br />
pd.lStructSize = sizeof(PRINTDLG);<br />
pd.hwndOwner = this->m_hWnd;<br />
pd.Flags =PD_RETURNDC|PD_ENABLESETUPTEMPLATE;<br />
pd.hInstance = NULL;<br />
pd.nMaxPage=1;<br />
pd.nMinPage=1;<br />
pd.nCopies=1;<br />
pd.hDevMode=0;<br />
pd.nFromPage=1;<br />
pd.nToPage=1;<br />
PrintDlg(&pd);<br />
<br />
di.cbSize = sizeof(DOCINFO);<br />
di.lpszDocName = "Test";<br />
di.lpszOutput = NULL;<br />
StartDoc (pd.hDC, &di);<br />
CImage m_Image;<br />
m_Image.Load("C:\\0.bmp");<br />
m_Image.BitBlt(pd.hDC,0,0,640,480,0,0,SRCCOPY);<br />
EndDoc (pd.hDC);<br />
whitesky
|
|
|
|
|
includeh10 wrote: [Message Deleted]
[Click for User Profile] includeh10
Anyway why have you deleted the message?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
You can see message in next Here[^]
whitesky
|
|
|
|
|
Is there any option to not have the compiler initialize variables to zero in debug builds?
(I'm using VC++ 6)
- thanks
|
|
|
|
|
as off now my information is the compiler initialize the variabe with a valueu 0xcccccccc in debug build.
SaRath.
"Don't Do Different things... Do Things Differently..."
|
|
|
|
|
Global variables are always zero initialised. As someone else mentioned, local variables are initialised to 0xCCCCCCCC in debug builds but left as is in release builds. Look into the /GZ compiler switch. Removing it stops locals from being initialised with 0xCCCCCCCC. I use MSVC6 so you might want to check that nothing has changes if you use a later version.
Steve
|
|
|
|
|
Hello everyone.
I need the source code of Fast Furie transform.
If you have it, please give to me.
Thank you.
|
|
|
|
|
|
I am developing a serch application. I want to it to have a "Simple" option and an "Advanced" option. When I press the Simple button I want some options to disapear (which I can do) and the form to get smaller (reduce Height only).
I need help with code for making the form smaller. I have tried using the MSDN site examples, but Visual Studio 2005 doesn't recognize:
Form1.Height = 145
It says I need aditional information (System.Windows. etc.)
Hengy
I like Pie
|
|
|
|
|
Try posting your question in the C# forum[^].
Software Zen: delete this;
|
|
|
|
|
Hi,
I have developed a small video file player. I'm currently using a simple dialog to render the video.
I would like to skin this dialog to give it a different look & feel (with proper play/stop/fwd/... buttons),
what do I need to know in order to achieve this?
Are there any up to date tutorials that demonstrate this somewhere?
I'm using VC++ NET 2003.
I also know how to use Photoshop (for the graphics files)
Please advise,
Thanks.
-- modified at 20:06 Saturday 3rd June, 2006
|
|
|
|
|
maybe it is some helpful to you Here[^]
whitesky
|
|
|
|
|
I have found some rather strange behaviour with GDI calls when used with an memory HDC. If you create the HDC, associate it with a 32 bit DIB i.e. BGRA channels, then initialize the DIB memory to have 0xFF set for all the alpha values, and then use GDI calls like Rectangle/Ellipse/Polygon, etc, the alpha values will get overwritten! They will always be reset back to 0! Is this by design? Is there a workaround?
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
|
|
|
|