👩💻 Join our community of thousands of amazing developers!
A customer wanted to convert dialog box units to pixels, and since GetDialogBaseUnits is a crock, they switched to using MapDialogRect. However, they found that MapDialogRect wasn’t working either: It always returned FALSE. What’s going on? Upon closer inspection, what’s going on is that the customer’s code wasn’t passing a dialog box handle as the first parameter to the MapDialogRect function. The post Why isn’t <CODE>MapDialogRect</CODE> mapping dialog rectangles? appeared first on T...