DEFINITION MODULE PMMisc;

        (****************************************************************)
        (*                                                              *)
        (*                  Miscellaneous PM operations                 *)
        (*                                                              *)
        (*        Started:        9 December 2025                       *)
        (*        Last edited:    9 December 2025                       *)
        (*        Status:         OK                                    *)
        (*                                                              *)
        (****************************************************************)


IMPORT OS2;

PROCEDURE WinAdjustDlgItemSize (hwnd: OS2.HWND;  id: CARDINAL);

    (* Assumption: the dialogue item identified by (hwnd, id) is a single-line  *)
    (* item with a text label, for example a checkbox or radio button.          *)
    (* We adjust the item size so that the current text just fits.  This        *)
    (* procedure will have to be called again if, for example, the font changes.*)

END PMMisc.

