int CISTmp_RearrangeControl(int panel, int control_hsplitter, int control_vsplitter, int default_min_height, int default_min_width, int *lastHeight, int *lastWidth) // 설명: Panel의 크기에 따라 Panel 내의 Control을 사전에 지정된 방식에 따라 조정(2013-03-11) // 인자설명: // 입력용 // panel 적용될 Panel Handle // control_hsplitter Panel 내의 기준 Horizontal Splitter // control_vsplitter Panel 내의 기준 Vertical Splitter // default_min_height Panel의 최소 높이 // default_min_width Panel의 최소 폭 // 입출력용 // lastHeight Panel의 이전의 최종 높이(함수 마지막에 갱신됨) // lastWidth Panel의 이전의 최종 폭(함수 마지막에 갱신됨) // 예) // CISTmp_ResizePanel(GpanelHandle, PANEL_HSPLITTER, PANEL_VSPLITTER, // DEFAULT_MIN_Panel_Height, DEFAULT_MIN_Panel_Width, &lastHeight, &lastWidth); { static int width, height, flag_resize; // Panel의 크기가 변경되면.... GetPanelAttribute (panel, ATTR_HEIGHT, &height); GetPanelAttribute (panel, ATTR_WIDTH, &width); // 기본 크기보다는 커도록 함 flag_resize = 0; if(height < default_min_height) { height = default_min_height; flag_resize = 1; } if(width < default_min_width) { width = default_min_width; flag_resize = 1; } if(flag_resize == 1) SetPanelSize (panel, height, width); // Docking using Splitter 방식 OperateSplitter(panel, control_hsplitter, height - (*lastHeight) ); OperateSplitter(panel, control_vsplitter, width - (*lastWidth) ); (*lastHeight) = height; (*lastWidth) = width; return 0; }