Esempio n. 1
0
File: main.c Progetto: kuailexs/jwm
/** Clean up memory.
 * This is called after the X connection is closed.
 * Note that it is possible for this to be called more than once.
 */
void Destroy(void)
{
   DestroyBackgrounds();
   DestroyBorders();
   DestroyClients();
   DestroyClock();
   DestroyColors();
   DestroyCommands();
   DestroyCursors();
   DestroyDesktops();
#ifndef DISABLE_CONFIRM
   DestroyDialogs();
#endif
   DestroyDock();
   DestroyFonts();
   DestroyGroups();
   DestroyHints();
   DestroyIcons();
   DestroyKeys();
   DestroyPager();
   DestroyPlacement();
   DestroyPopup();
   DestroyRootMenu();
   DestroyScreens();
   DestroySettings();
   DestroySwallow();
   DestroyTaskBar();
   DestroyTray();
   DestroyTrayButtons();
}
Esempio n. 2
0
void MeaSwatch::SetColor(COLORREF color)
{
    CBrush *brush   = new CBrush(color);
    if (m_hWnd != NULL) {
        ::SetClassLong(m_hWnd, GCL_HBRBACKGROUND, reinterpret_cast<LONG>(static_cast<HBRUSH>(*brush)));
    }
    
    DestroyColors();
    m_backBrush = brush;

    if (m_hWnd != NULL) {
        Invalidate();
        UpdateWindow();
    }
}
Esempio n. 3
0
void MeaSwatch::OnDestroy()
{
    CWnd::OnDestroy();
    DestroyColors();
}