Integrate Text With Owner Draw

I have successfully created an owner draw (OD) list box according to MSDN's example here --

http://msdn.microsoft.com/en-us/library/bb775148(VS.85).aspx

Scroll down to the bottom example for the OD example.

I have also successfully created the owner buttons program in Petzold.

What I want to do is replace in the first example above the bitmaps with a Hebrew or Greek font. I know how to create the fonts, but I don't know how to substitute the font for the bitmpas in the above program.

You see, in my program the plain string itself, such as "pencil" as in the MSDN example, will actuall be three roman numerals, such as 342, or whatever. I want the Hebrew word (in the Hebrew font) to appear immediately before those numbers in my list box, just as the pencil BMP appears immediately before the string "pencil" in the MSDN example.

So, in the simlest code possible, if you know how I can restructure this I'd be much obliged.

If you want to retrieve an actual Hebrew font to work with and set it up in your program, you can get it for free here --

http://www.bibleworks.com/fonts.html

In other words, in my list box each entry would appear "xbcd 114" without the quotes, and so on, only the xbcd would be in actual Hebrew.
Last edited on
Okay, so nobody wants to get involved in this swamp, so I have this question --

Would it be appropriate to substitute HFONT or HANDLE in place of HBITMAP in the owner draw scheme, as in the MSDN example?

Here is the EXE I copied/modified from the MSDN example --

http://lamblion.net/image_dump/owner draw.zip

(You have to include the non-underlined portion, as it won't "take" here in this posting).
Last edited on
Topic archived. No new replies allowed.