Sign in to follow this  
spree

Win32 Intercepting HDC events

Recommended Posts

spree    100
Hey all :) I'm trying to build a screen reader program for my college project and I could use some help :) Can I somehow intercept the text drawing functions of GDI using HDC(Handle To Device Context)? Lets say that I have an HDC of a specific window, and whenever this window is calling a GDI function like TextOut(x,y,str); I want to be able to get these x,y and str parameters. Can this be done? Thanks :)

Share this post


Link to post
Share on other sites
LessBread    1415
Yes it can be done.

You'll want to get a copy of Windows Graphics Programming: Win32 GDI and DirectDraw by Feng Yuan. That's pretty much "the" book on GDI. And check out the articles from his website, specifically the article on function profiling and the article on capturing window contents using WM_PRINT.

Also see Feng's blog: Feng Yuan (袁峰)

And check out the various microsoft newsgroups, specifically microsoft.public.win32.programmer.gdi. Here's a search of google groups: feng yuan. A search on his name might seem strange but it'll likely get you information specific to your question sooner than skimming over that newsgroup will.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this