[GME-commit] GMESRC/GME/MgaUtil CompDlg.cpp, 1.15, 1.16 CompDlg.h, 1.10, 1.11 MetaDlg.cpp, 1.14, 1.15 MetaDlg.h, 1.6, 1.7 MgaUtil.rc, 1.57, 1.58

Log messages of CVS commits gme-commit at list.isis.vanderbilt.edu
Fri Feb 8 17:58:51 CST 2008


Update of /project/gme-repository/GMESRC/GME/MgaUtil
In directory escher:/tmp/cvs-serv6568

Modified Files:
	CompDlg.cpp CompDlg.h MetaDlg.cpp MetaDlg.h MgaUtil.rc 
Log Message:
MetaDlg and CompDlg became resizable windows.



CVS User: Zoltan Molnar, ISIS (zolmol)

Index: MetaDlg.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/MgaUtil/MetaDlg.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** MetaDlg.cpp	20 Jul 2004 13:55:47 -0000	1.14
--- MetaDlg.cpp	8 Feb 2008 23:58:49 -0000	1.15
***************
*** 7,10 ****
--- 7,11 ----
  #include "MetaPurgeDialog.h"
  #include "MgaLauncher.h"
+ #include ".\metadlg.h"
  
  #ifdef _DEBUG
***************
*** 46,49 ****
--- 47,51 ----
  	ON_BN_CLICKED(IDC_PURGE, OnPurge)
  	//}}AFX_MSG_MAP
+ 	ON_WM_SIZE()
  END_MESSAGE_MAP()
  
***************
*** 379,381 ****
--- 381,397 ----
  	dlg.DoModal();
  	ResetItems();
+ }
+ 
+ void CMetaDlg::OnSize(UINT nType, int cx, int cy)
+ {
+ 	CDialog::OnSize(nType, cx, cy);
+ 
+ 	CRect list_rect;
+ 	if( m_list.GetSafeHwnd()) {
+ 		m_list.GetWindowRect( &list_rect);
+ 		ScreenToClient( &list_rect);
+ 		int width = cx - 2 * list_rect.left;
+ 
+ 		m_list.SetWindowPos( NULL, list_rect.left, list_rect.top, width > 20? width: 20, list_rect.Height(), SWP_NOZORDER);
+ 	}
  }

Index: MetaDlg.h
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/MgaUtil/MetaDlg.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** MetaDlg.h	4 May 2001 09:02:00 -0000	1.6
--- MetaDlg.h	8 Feb 2008 23:58:49 -0000	1.7
***************
*** 59,62 ****
--- 59,63 ----
  	CString connstr;	// dialog return data 
  	metadlg_enum flags;
+ 	afx_msg void OnSize(UINT nType, int cx, int cy);
  };
  

Index: MgaUtil.rc
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/MgaUtil/MgaUtil.rc,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** MgaUtil.rc	7 Mar 2007 21:11:57 -0000	1.57
--- MgaUtil.rc	8 Feb 2008 23:58:49 -0000	1.58
***************
*** 40,47 ****
  END
  
! IDD_METADLG DIALOG  0, 0, 302, 231
! STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  CAPTION "Select Paradigm"
! FONT 8, "MS Sans Serif"
  BEGIN
      DEFPUSHBUTTON   "Create New...",IDOK,15,201,55,15,WS_DISABLED
--- 40,47 ----
  END
  
! IDD_METADLG DIALOGEX 0, 0, 302, 230
! STYLE DS_SETFONT | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
  CAPTION "Select Paradigm"
! FONT 8, "MS Sans Serif", 0, 0, 0x0
  BEGIN
      DEFPUSHBUTTON   "Create New...",IDOK,15,201,55,15,WS_DISABLED
***************
*** 128,133 ****
  END
  
! IDD_COMPDLG DIALOGEX 0, 0, 304, 237
! STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  CAPTION "Components"
  FONT 8, "MS Sans Serif", 0, 0, 0x0
--- 128,133 ----
  END
  
! IDD_COMPDLG DIALOGEX 0, 0, 304, 238
! STYLE DS_SETFONT | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
  CAPTION "Components"
  FONT 8, "MS Sans Serif", 0, 0, 0x0
***************
*** 142,146 ****
                      LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | 
                      LVS_SHAREIMAGELISTS | LVS_NOLABELWRAP | LVS_AUTOARRANGE | 
!                     WS_BORDER | WS_TABSTOP,5,35,255,135
      LTEXT           "Register:",IDC_STATIC,141,180,69,8
      CONTROL         "Systemwide",IDC_RADIOSYS,"Button",BS_AUTORADIOBUTTON | 
--- 142,146 ----
                      LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_SORTASCENDING | 
                      LVS_SHAREIMAGELISTS | LVS_NOLABELWRAP | LVS_AUTOARRANGE | 
!                     WS_BORDER | WS_TABSTOP,5,35,292,135
      LTEXT           "Register:",IDC_STATIC,141,180,69,8
      CONTROL         "Systemwide",IDC_RADIOSYS,"Button",BS_AUTORADIOBUTTON | 
***************
*** 743,747 ****
          RIGHTMARGIN, 295
          TOPMARGIN, 7
!         BOTTOMMARGIN, 224
      END
  
--- 743,747 ----
          RIGHTMARGIN, 295
          TOPMARGIN, 7
!         BOTTOMMARGIN, 223
      END
  
***************
*** 759,763 ****
          RIGHTMARGIN, 297
          TOPMARGIN, 7
!         BOTTOMMARGIN, 230
      END
  
--- 759,763 ----
          RIGHTMARGIN, 297
          TOPMARGIN, 7
!         BOTTOMMARGIN, 231
      END
  

Index: CompDlg.h
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/MgaUtil/CompDlg.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** CompDlg.h	13 Oct 2004 15:17:55 -0000	1.10
--- CompDlg.h	8 Feb 2008 23:58:49 -0000	1.11
***************
*** 70,73 ****
--- 70,74 ----
  	CString progid;
  	CString onOKoper;
+ 	afx_msg void OnSize(UINT nType, int cx, int cy);
  };
  

Index: CompDlg.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/MgaUtil/CompDlg.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** CompDlg.cpp	13 Oct 2004 15:17:55 -0000	1.15
--- CompDlg.cpp	8 Feb 2008 23:58:49 -0000	1.16
***************
*** 6,9 ****
--- 6,10 ----
  #include "CompDlg.h"
  #include "CompInfoDlg.h"
+ #include ".\compdlg.h"
  
  #ifdef _DEBUG
***************
*** 52,55 ****
--- 53,57 ----
  	ON_BN_CLICKED(Toggle, OnToggle)
  	//}}AFX_MSG_MAP
+ 	ON_WM_SIZE()
  END_MESSAGE_MAP()
  
***************
*** 500,501 ****
--- 502,517 ----
  }
  
+ 
+ void CCompDlg::OnSize(UINT nType, int cx, int cy)
+ {
+ 	CDialog::OnSize(nType, cx, cy);
+ 
+ 	CRect list_rect;
+ 	if( m_list.GetSafeHwnd()) {
+ 		m_list.GetWindowRect( &list_rect);
+ 		ScreenToClient( &list_rect);
+ 		int width = cx - 2 * list_rect.left;
+ 
+ 		m_list.SetWindowPos( NULL, list_rect.left, list_rect.top, width > 20? width: 20, list_rect.Height(), SWP_NOZORDER);
+ 	}
+ }



More information about the GME-commit mailing list