Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - CXTPSkinManager::Suspend()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPSkinManager::Suspend()

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 919
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: CXTPSkinManager::Suspend()
    Posted: 23 hours 50 minutes ago at 9:02am
Wondering why the double "!!" in this api. The same !! is in SetAutoApplyNewWindows/Threads. Guessing the compiler optimizes it away.

void CXTPSkinManager::Suspend()
{
    _ASSERTE("Already suspended" && !IsSuspended());
    if (IsSuspended())
        return;

    m_SuspendedState.u.bSuspended         = TRUE;
    m_SuspendedState.u.bAutoApplyWindows = !!m_bAutoApplyWindows;
    m_SuspendedState.u.bAutoApplyThreads = !!m_bAutoApplyThreads;
    m_SuspendedState.u.bApplyDCs         = !!HasApplyOptions(xtpSkinApplyDCs);

    SetAutoApplyNewWindows(FALSE);
    SetAutoApplyNewThreads(FALSE);
    ModifyApplyOptions(0, xtpSkinApplyDCs);
}

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.