Print Page | Close Window

CXTPSkinManager::Suspend()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=24566
Printed Date: 05 April 2025 at 8:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPSkinManager::Suspend()
Posted By: rdhd
Subject: CXTPSkinManager::Suspend()
Date Posted: 04 April 2025 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);
}




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net