Posted on 2001-06-29
I am developing an application for Windows CE where I have very specific sizing specifications (in pixels) for the various controls and dialogs. The problem is that Microsoft uses "Dialog Units" (DLU's) to layout the dialog boxes and controls. I need to layout the controls using pixels.
Does anyone know of a way to force 1 DLU = 1 pixel??? I'm not sure where MS does the conversion or if I can override a function call somewhere. I tried overriding MapDialogRect in my CDialog-derived class, but the function is not called.
For a little background, 1 Horizontal DLU = 1/4 the average width of the dialog font. 1 Vertical DLU = 1/8 the average height of the dialog font. I have tried using various fonts without any luck in getting both the DLU's = 1 pixel.
Any help would be appreciated!