Click here to Skip to main content
15,893,368 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can i send a command to cmd.exe? Pin
Gurra_Koo3-Aug-05 11:52
Gurra_Koo3-Aug-05 11:52 
GeneralRe: How can i send a command to cmd.exe? Pin
Lagwagon564-Aug-05 10:05
Lagwagon564-Aug-05 10:05 
GeneralNeed Help ....MultiThread Pin
inbakumar.G3-Aug-05 4:58
inbakumar.G3-Aug-05 4:58 
GeneralRe: Need Help ....MultiThread Pin
Blake Miller3-Aug-05 10:33
Blake Miller3-Aug-05 10:33 
QuestionI need to display dialogs as tabs? Pin
BenPage3-Aug-05 4:49
BenPage3-Aug-05 4:49 
AnswerRe: I need to display dialogs as tabs? Pin
TEOlivier3-Aug-05 10:39
TEOlivier3-Aug-05 10:39 
AnswerRe: I need to display dialogs as tabs? Pin
BambooMoon3-Aug-05 11:16
BambooMoon3-Aug-05 11:16 
Generalcontrolling a IE window - scrolling down Pin
djpitagora3-Aug-05 4:35
djpitagora3-Aug-05 4:35 
i'm trying to get a IHTMLWindow2 object to use it's Scroll method. It's realy weird but it doesn't work. Here is the code i used.
m_pWebBrowser is IWebBrowser2* and has been corectly initialized...as in i can use it to control the IE window (Navigate...parse the source...).

[CODE]
HRESULT hr;
IDispatch* pHtmlDocDispatch = NULL;
IHTMLDocument2 * pHtmlDoc = NULL;
IHTMLWindow2 * p = NULL;

hr = m_pWebBrowser->get_Document (&pHtmlDocDispatch);
if (SUCCEEDED (hr) && (pHtmlDocDispatch != NULL))
{
hr = pHtmlDocDispatch->QueryInterface (IID_IHTMLDocument2, (LPVOID *) &pHtmlDoc);
if (SUCCEEDED (hr) && (pHtmlDoc != NULL))
{
pHtmlDoc->get_parentWindow(&p);
// this is were i get the error. p remains null
if(SUCCEEDED(hr) && p)
p->scrollTo(x,y);
}
}
[/CODE]
I realy hope some1 can help or at least give me an alternative way to scroll the IE window..other then sending keys.

GeneralRe: controlling a IE window - scrolling down Pin
Michael Dunn3-Aug-05 5:15
sitebuilderMichael Dunn3-Aug-05 5:15 
GeneralRe: controlling a IE window - scrolling down Pin
djpitagora4-Aug-05 6:22
djpitagora4-Aug-05 6:22 
GeneralReduce CImageList memory consumption Pin
Daniel C.3-Aug-05 4:06
Daniel C.3-Aug-05 4:06 
QuestionHow do i Paint tab conrtol? Pin
Anonymous3-Aug-05 3:48
Anonymous3-Aug-05 3:48 
AnswerRe: How do i Paint tab conrtol? Pin
Hiigara3-Aug-05 4:58
Hiigara3-Aug-05 4:58 
GeneralClistCtrl More help needed Pin
Halawlaws3-Aug-05 3:40
Halawlaws3-Aug-05 3:40 
GeneralRe: ClistCtrl More help needed Pin
Jose Lamas Rios3-Aug-05 4:07
Jose Lamas Rios3-Aug-05 4:07 
GeneralRe: ClistCtrl More help needed Pin
Halawlaws3-Aug-05 4:50
Halawlaws3-Aug-05 4:50 
GeneralRe: ClistCtrl More help needed Pin
Jose Lamas Rios3-Aug-05 5:16
Jose Lamas Rios3-Aug-05 5:16 
GeneralRe: ClistCtrl More help needed Pin
Halawlaws3-Aug-05 20:44
Halawlaws3-Aug-05 20:44 
GeneralRe: ClistCtrl More help needed Pin
David Crow3-Aug-05 4:45
David Crow3-Aug-05 4:45 
GeneralRe: ClistCtrl More help needed Pin
Halawlaws3-Aug-05 4:51
Halawlaws3-Aug-05 4:51 
GeneralWhy on earth the windows edit control caret doesn't blink... Pin
Hiigara3-Aug-05 3:07
Hiigara3-Aug-05 3:07 
GeneralRe: Why on earth the windows edit control caret doesn't blink... Pin
Hiigara3-Aug-05 22:12
Hiigara3-Aug-05 22:12 
Questionconvert BSTR to LPSTR? Pin
Scozturk3-Aug-05 2:50
professionalScozturk3-Aug-05 2:50 
AnswerRe: convert BSTR to LPSTR? Pin
Jose Lamas Rios3-Aug-05 3:23
Jose Lamas Rios3-Aug-05 3:23 
GeneralRe: convert BSTR to LPSTR? Pin
Scozturk3-Aug-05 3:40
professionalScozturk3-Aug-05 3:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.