Click here to Skip to main content
15,499,289 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reach usercontrol's child control's methods Pin
SledgeHammer0117-May-14 12:31
MemberSledgeHammer0117-May-14 12:31 
GeneralRe: Reach usercontrol's child control's methods Pin
op7518-May-14 23:00
Memberop7518-May-14 23:00 
QuestionFail to click on Child windows using API Pin
Member 1063699816-May-14 4:29
MemberMember 1063699816-May-14 4:29 
QuestionRe: Fail to click on Child windows using API Pin
Alan N16-May-14 6:46
MemberAlan N16-May-14 6:46 
AnswerRe: Fail to click on Child windows using API Pin
Member 1063699816-May-14 7:43
MemberMember 1063699816-May-14 7:43 
QuestionRe: Fail to click on Child windows using API Pin
Alan N16-May-14 9:32
MemberAlan N16-May-14 9:32 
AnswerRe: Fail to click on Child windows using API Pin
Member 1063699816-May-14 11:34
MemberMember 1063699816-May-14 11:34 
QuestionRe: Fail to click on Child windows using API Pin
Alan N19-May-14 2:50
MemberAlan N19-May-14 2:50 
No thanks to the email option. I'm still trying to find out why FindWindowEx is being used. In the code fragment the child window enumerator returns the ApiWindow 'child' from which you get ClassName and MainWindowTitle. Why did you not use child.hWnd to get the required handle for use in PostMessage?

C#
foreach (WindowsEnumerator.ApiWindow child in enumerator.GetChildWindows(top.hWnd))
{
    if (child.ClassName == "Child_ClassName" && child.MainWindowTitle == "Child_Title")
    {
        IntPtr Chd_win = IntPtr.Zero;

        // GUI
        Chd_win = FindWindowEx(hwnd, Chd_win, child.ClassName, child.MainWindowTitle);

        PostMessage(Chd_win, WM_LBUTTONDOWN, 5, 5); // button down
        PostMessage(Chd_win, WM_LBUTTONUP, 5, 5); // button up

        MessageBox.Show(child.ClassName + ", " + child.MainWindowTitle, "");
    }
}

AnswerRe: Fail to click on Child windows using API Pin
Member 1063699819-May-14 7:04
MemberMember 1063699819-May-14 7:04 
AnswerRe: Fail to click on Child windows using API Pin
Member 1063699819-May-14 7:33
MemberMember 1063699819-May-14 7:33 
Questionsimple log in authorized member sample! Pin
Hakan Bulut16-May-14 1:26
MemberHakan Bulut16-May-14 1:26 
SuggestionRe: simple log in authorized member sample! Pin
Richard MacCutchan16-May-14 1:49
mveRichard MacCutchan16-May-14 1:49 
GeneralRe: simple log in authorized member sample! Pin
Hakan Bulut16-May-14 2:09
MemberHakan Bulut16-May-14 2:09 
GeneralRe: simple log in authorized member sample! Pin
Richard MacCutchan16-May-14 2:16
mveRichard MacCutchan16-May-14 2:16 
GeneralRe: simple log in authorized member sample! Pin
Hakan Bulut16-May-14 2:32
MemberHakan Bulut16-May-14 2:32 
GeneralRe: simple log in authorized member sample! Pin
Richard MacCutchan16-May-14 2:35
mveRichard MacCutchan16-May-14 2:35 
GeneralRe: simple log in authorized member sample! Pin
Hakan Bulut16-May-14 2:52
MemberHakan Bulut16-May-14 2:52 
GeneralRe: simple log in authorized member sample! Pin
OriginalGriff16-May-14 3:08
mveOriginalGriff16-May-14 3:08 
GeneralRe: simple log in authorized member sample! Pin
Richard MacCutchan16-May-14 3:28
mveRichard MacCutchan16-May-14 3:28 
GeneralRe: simple log in authorized member sample! Pin
Hakan Bulut16-May-14 3:47
MemberHakan Bulut16-May-14 3:47 
GeneralRe: simple log in authorized member sample! Pin
Richard MacCutchan16-May-14 3:49
mveRichard MacCutchan16-May-14 3:49 
GeneralRe: simple log in authorized member sample! Pin
Hakan Bulut16-May-14 4:00
MemberHakan Bulut16-May-14 4:00 
AnswerRe: simple log in authorized member sample! Pin
BillWoodruff16-May-14 2:06
mveBillWoodruff16-May-14 2:06 
GeneralRe: simple log in authorized member sample! Pin
Hakan Bulut16-May-14 2:17
MemberHakan Bulut16-May-14 2:17 
GeneralRe: simple log in authorized member sample! Pin
OriginalGriff16-May-14 3:09
mveOriginalGriff16-May-14 3:09 

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.