BOOL SaveWindowState(HWND hWnd, const char *pszName) { RECT rc; GetWindowRect(hWnd, &rc); MapWindowPoints(NULL, mainwindow, (POINT *)&rc, 2); return SaveWindowInfo(pszName, &rc, sizeof(rc)); }
MainFrame::~MainFrame (void) { SaveWindowInfo(); gtk_widget_hide(GTK_WIDGET(m_window)); Shutdown(); gtk_widget_destroy(GTK_WIDGET(m_window)); }