Why isn’t MapDialogRect mapping dialog rectangles?

3 · Raymond Chen · Oct. 21, 2021, 2:21 p.m.
A customer wanted to convert dialog box units to pixels, and since Get­Dialog­Base­Units is a crock, they switched to using Map­Dialog­Rect. However, they found that Map­Dialog­Rect 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 Map­Dialog­Rect function. The post Why isn’t <CODE>MapDialogRect</CODE> mapping dialog rectangles? appeared first on T...