CA Plex - Maximize and Minimize properties in Dialog panels
search cancel

CA Plex - Maximize and Minimize properties in Dialog panels

book

Article ID: 261418

calendar_today

Updated On:

Products

CA Plex

Issue/Introduction

Is there a way to allow the Maximize/Minimize properties to be present within the Panels Type Dialog?

Environment

CA Plex 7.21

All Supported Operating Systems

Resolution

The dialog window is equipped with the system Close button. It is usually modal, in which case the user is not allowed to continue any other operation until the dialog box is dismissed.

To achieve this requirement, the following source code object will be helpful.

{
    HWND myhWnd= ::GetActiveWindow();

   DWORD style = GetWindowLongPtrA(myhWnd, GWL_STYLE);
   style |= WS_MAXIMIZEBOX;
   style |= WS_MINIMIZEBOX;
   SetWindowLongPtrA(myhWnd, GWL_STYLE, style);
}

To get the buttons to respond, you will need to enable the Max/Min button events by applying the THICK FRAME Plex panel property

https://chat.google.com/u/0/api/get_attachment_url?url_type=FIFE_URL&content_type=image%2Fpng&attachment_token=AMzByC0I2b03vpACs46a01OTMzA1qVzF68eLf8N6KQrVvIutevWbXAtUNnZgOPfxwxEzWW6VqbsAkHFJwvefxT5EudVwGHJGLCpiXUCGJS74H21yzvzPSF5GKykZIxm2mADbeJsYaBL%2FEuO10go91sMnNVQ3%2F3d7mOY9HVHyzyjiM7ENoyyg3yjYDmXHFluO4sFwmUvbfgKpGJ88IarrMETWOk9zXs5lkmj5CHlSRKOxw6mu7XVqqpkGC%2BI2DVpup0ld578YSNStQkLat7vOA8zpTIIbds%2B3RR4mrjAAuwIB2C%2BTTwd9D%2BlEIn1xGOzNlfx2WlOF7CcY%2FR8mmE7RkYWpO0TM26XVPymkg33iUvJol6%2Byf5qVTJae0dm%2F43yW3TQBwMnCYQHvqXLlLOSsb8Gxzq4H53yZHmrpEbBJRxK%2B8orZQKIoPScwe2S%2FUagbYzM%2FmX%2FFBiKuQkaOU48K%2BHYT81gQVeSc80%2BNj3biQkhLus2bX2kngoqULYWlxx4gjDd2uzcjt9rsy07MWBH0xkPbjhM5wxYtshVseZBiTCJ59kL8sxSwbaSau33jc6VXUz%2FMzw5UA8yi3If1qtSr%2Fco8EwtHFbMEmQ%3D%3D&sz=w512