Jump to content
  • Advertisement
Sign in to follow this  
spree

Win32 Intercepting HDC events

This topic is 4100 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!