Thread: windowsAPI programm

  1. #1
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356

    Talking windowsAPI programm

    Hey guys long time.Yeah know i have started winAPI programming.Okay how would i get a handle to an external window for example say a handle to internet explorer ..Okay what should i do if i want the programm to readkey stroks even ifthe window has no focus.U guessed it i am trying tomake a programm that hides and unhide ur internet explorer.COOL tool for those office guys.Is the like a book for all the window API functions??

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    It was the next message on the list!!!

    http://cboard.cprogramming.com/showt...threadid=35499

    The best resource for API routines is the MSDN library, it is up to date, by definition, a book is out of date before it arrives in the shops. The most recommended book for API programming is Charles Petzolds "Programming Windows" fifth edition.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356
    yup i am using petzold great book
    "I wish i could wish my wishs away"

    "By indirections find directions out" -- William Shakespears

    "Do what thou wilt shall be the whole of the law" -- Crowley "THE BEAST 666"

    Mizra -> love = Death...
    RDB(Rocks yooo)..

    http://www.cbeginnersunited.com

    Are you ready for the Trix ???

  4. #4
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356
    Well i checked the post and nothing that could help me ..

    1) how would i find the handle to internet explorer so i can use showWindow() to hide and unhide it.

    2) how can i read keystrokes when the focus isnt on my window.
    "I wish i could wish my wishs away"

    "By indirections find directions out" -- William Shakespears

    "Do what thou wilt shall be the whole of the law" -- Crowley "THE BEAST 666"

    Mizra -> love = Death...
    RDB(Rocks yooo)..

    http://www.cbeginnersunited.com

    Are you ready for the Trix ???

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    From the other thread...

    >>> One solution is FindWindow().
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  6. #6
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356
    how will i use it like this

    Code:
    hwndiExplore = FindWindow("IEXPLORE", NULL );
    it dosnt seem to work

  7. #7
    NoOneHere
    Guest
    IEXPLORE isnt the class name inorder to use findwindow and findwindowex u need the class name or window handle, if u are using m$vstudio ent there will be an app called spy++ which will give u the class name etc of the iexplore window i think its summin like IEFRAME (the only ones i ever use are for the notify icon area and start bar ^_^)

  8. #8
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356
    Yeah guys i used the FindWindow() function and it works fine .But know the problem is if there are 2 Iexplore window its gives u the handle to the first one opened .Is there any function to get the hadles with using the same class name.

    I saw VB can use this function for that FindWindowLike() ...
    Ah another problem when i try setBKColor () or setTextColor)( it says the function dont exist why is it that??

  9. #9
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    Originally posted by datainjector
    Is there any function to get the hadles with using the same class name.
    There's a way to fetch all top window handles and see if they belong to a specific class; look into EnumWindows() and GetClassName().
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. force the programm to write data
    By arno-nyme in forum Linux Programming
    Replies: 1
    Last Post: 06-17-2008, 06:11 AM
  2. HexDump Programm....
    By Kdar in forum C Programming
    Replies: 4
    Last Post: 10-03-2006, 05:13 AM
  3. programm will not start
    By keeper in forum C++ Programming
    Replies: 11
    Last Post: 07-03-2006, 06:02 AM
  4. printing with a c programm
    By -11Reaper11- in forum C++ Programming
    Replies: 3
    Last Post: 04-30-2006, 10:31 AM
  5. I am looking for a programm!
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 04-10-2002, 11:51 AM