Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
#realJSOP7-May-01 2:55
professional#realJSOP7-May-01 2:55 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
l a u r e n7-May-01 5:36
l a u r e n7-May-01 5:36 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
#realJSOP7-May-01 6:02
professional#realJSOP7-May-01 6:02 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
Ajit Jadhav7-May-01 7:10
Ajit Jadhav7-May-01 7:10 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
Ajit Jadhav7-May-01 7:26
Ajit Jadhav7-May-01 7:26 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
7-May-01 19:15
suss7-May-01 19:15 
GeneralTrimming spaces in a BSTR value Pin
yamini6-May-01 19:34
yamini6-May-01 19:34 
GeneralFinding coordinates of Focus rectangle Pin
6-May-01 19:33
suss6-May-01 19:33 
hello,

im using winrunner to test an app and it is failing to find text in a list box when the fields are becomeing truncated. I wanted to overcome this by calling api functions to find the x y coordinates of focus rectangle as the desired item in the list has already been selected using the apps search function. With these i could move the mouse to those coordinates and continue the test.

Ive tried the following:

***********************************************************************************************
HWND Handel, ChildHandel; //Handels
POINT Pos;

Handel = FindWindow (NULL, "Fields"); //Get fields Window handel
ChildHandel = FindWindowEx (Handel, NULL, "STRHList", NULL); //Get List window

SetForegroundWindow(ChildHandel);
GetCaretPos (&Pos);
printf ("%d\n\n", Pos.x);
***********************************************************************************************

This prints out 0.
Is there any api function that will give my screen coordinates for the focus rectangle or the currently selected item in a list???
Confused | :confused:
GeneralRe: Finding coordinates of Focus rectangle Pin
Christian Graus6-May-01 19:51
protectorChristian Graus6-May-01 19:51 
GeneralRe: Finding coordinates of Focus rectangle Pin
6-May-01 20:03
suss6-May-01 20:03 
GeneralRe: Finding coordinates of Focus rectangle Pin
6-May-01 20:38
suss6-May-01 20:38 
GeneralRe: Finding coordinates of Focus rectangle Pin
Christian Graus6-May-01 20:49
protectorChristian Graus6-May-01 20:49 
GeneralRe: Finding coordinates of Focus rectangle Pin
6-May-01 21:18
suss6-May-01 21:18 
GeneralRe: Finding coordinates of Focus rectangle Pin
#realJSOP7-May-01 1:09
professional#realJSOP7-May-01 1:09 
GeneralFTP Question Pin
Cabadam6-May-01 18:13
Cabadam6-May-01 18:13 
GeneralRe: FTP Question Pin
l a u r e n6-May-01 21:04
l a u r e n6-May-01 21:04 
GeneralRe: FTP Question Pin
Cabadam7-May-01 15:00
Cabadam7-May-01 15:00 
GeneralRe: FTP Question Pin
l a u r e n7-May-01 21:54
l a u r e n7-May-01 21:54 
GeneralRe: FTP Question Pin
Cabadam8-May-01 1:52
Cabadam8-May-01 1:52 
GeneralLauch Internet Explorer Pin
6-May-01 10:23
suss6-May-01 10:23 
GeneralRe: Lauch Internet Explorer Pin
Christian Graus6-May-01 12:04
protectorChristian Graus6-May-01 12:04 
Generalvc++ using directx 8 sdk and crystal space game engine Pin
5-May-01 10:35
suss5-May-01 10:35 
GeneralRe: vc++ using directx 8 sdk and crystal space game engine Pin
Christian Graus6-May-01 12:18
protectorChristian Graus6-May-01 12:18 
GeneralRe: vc++ using directx 8 sdk and crystal space game engine Pin
Hadi Rezaee7-May-01 3:01
Hadi Rezaee7-May-01 3:01 
GeneralTotal memory crash when converting from regular to extension DLL Pin
5-May-01 9:03
suss5-May-01 9:03 

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.