Click here to Skip to main content
15,910,303 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: TextOut a BSTR Pin
Steve S10-Feb-04 23:19
Steve S10-Feb-04 23:19 
GeneralRe: TextOut a BSTR Pin
SiddharthAtw11-Feb-04 1:17
SiddharthAtw11-Feb-04 1:17 
GeneralRe: TextOut a BSTR Pin
Steve S11-Feb-04 6:12
Steve S11-Feb-04 6:12 
GeneralRe: TextOut a BSTR Pin
Anonymous11-Feb-04 10:42
Anonymous11-Feb-04 10:42 
GeneralRe: TextOut a BSTR Pin
SiddharthAtw11-Feb-04 17:39
SiddharthAtw11-Feb-04 17:39 
GeneralRe: TextOut a BSTR Pin
Steve S11-Feb-04 22:32
Steve S11-Feb-04 22:32 
GeneralRe: TextOut a BSTR Pin
Brigsoft12-Feb-04 8:35
Brigsoft12-Feb-04 8:35 
GeneralGeting Main brower window corridnates Pin
macattack10-Feb-04 10:29
macattack10-Feb-04 10:29 
I wish to work with the main window area in Internet Explorer and I want to get its coordinates. I have used the following:
long lpl = 0, lpt = 0, lpw = 0, lph = 0;
m_spWebBrowser2->get_Left(&lpl);
m_spWebBrowser2->get_Top(&lpt);
m_spWebBrowser2->get_Height(&lph);
m_spWebBrowser2->get_Width(&lpw);

then converted the client points to Windows points:
int npl = 0, npt = 0, npr = 0, npb = 0;

npt = (int) lpt; //top
npl = (int) lpl; //left
npr = (int) lpw + npl; //right
npb = (int) lph + npt; //bottom
m_spWebBrowser2->ClientToWindow(&npt, &npl); //top left
m_spWebBrowser2->ClientToWindow(&npb, &npr); // bottom right

Unfortunately this does not seem to work. First I noticed that the values returned for the top left corridnates of the window are not consistant. Everytime I open the browser they change position even though the browser opens in the same size and location. secondly, if I create a RECT out of these corridnates and pass that into a create dialog function the window created does not cover the whole area.

RECT rctB = {npl, npt, npr, npb};
m_hwndDialog = m_dlgDialog.Create(NULL, rctB, lpWindowName, 0, 0, 0, NULL);
m_dlgDialg.ShowWindow(SW_SHOW);

Thanks in advnace






GeneralCWindow* to CWnd* Pin
Member 4085619-Feb-04 23:53
Member 4085619-Feb-04 23:53 
GeneralRe: CWindow* to CWnd* Pin
_Magnus_10-Feb-04 1:36
_Magnus_10-Feb-04 1:36 
GeneralRe: CWindow* to CWnd* Pin
Jörgen Sigvardsson11-Feb-04 8:50
Jörgen Sigvardsson11-Feb-04 8:50 
GeneralRestricting a BHO Pin
macattack9-Feb-04 12:39
macattack9-Feb-04 12:39 
GeneralRe: Restricting a BHO Pin
Jason De Arte10-Feb-04 7:04
Jason De Arte10-Feb-04 7:04 
GeneralRe: Restricting a BHO Pin
macattack10-Feb-04 7:18
macattack10-Feb-04 7:18 
QuestionHow to add a help file into a wtl dialog? Pin
freehawk8-Feb-04 19:27
freehawk8-Feb-04 19:27 
GeneralError in wizard Pin
SiddharthAtw8-Feb-04 18:16
SiddharthAtw8-Feb-04 18:16 
GeneralRe: Error in wizard Pin
Simon.W9-Feb-04 1:12
Simon.W9-Feb-04 1:12 
QuestionIdentical methods/properties in separate interfaces ? Pin
Alwin756-Feb-04 0:16
Alwin756-Feb-04 0:16 
AnswerRe: Identical methods/properties in separate interfaces ? Pin
_Magnus_6-Feb-04 2:43
_Magnus_6-Feb-04 2:43 
AnswerRe: Identical methods/properties in separate interfaces ? Pin
Jörgen Sigvardsson7-Feb-04 23:01
Jörgen Sigvardsson7-Feb-04 23:01 
QuestionHow can i get properties of com object dynamically Pin
Inam5-Feb-04 19:46
Inam5-Feb-04 19:46 
AnswerRe: How can i get properties of com object dynamically Pin
Jörgen Sigvardsson5-Feb-04 21:37
Jörgen Sigvardsson5-Feb-04 21:37 
GeneralAbout CString Pin
freehawk5-Feb-04 18:48
freehawk5-Feb-04 18:48 
GeneralRe: About CString Pin
Jörgen Sigvardsson5-Feb-04 21:35
Jörgen Sigvardsson5-Feb-04 21:35 
QuestionHow to get a double-click message? Pin
freehawk4-Feb-04 21:35
freehawk4-Feb-04 21:35 

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.