Changeset 783 in dev for branches


Ignore:
Timestamp:
Jan 29, 2011, 6:08:57 PM (14 years ago)
Author:
イグトランス (egtra)
Message:

Windows 7以前で、新しくMDI子ウィンドウを作るなどしたときに落ちる問題の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/abdev/src/MainFrame.cpp

    r778 r783  
    294294        if (taskbarList)
    295295        {
    296         taskbarList->SetTabOrder(*mapAt(hwndChild),
    297             hwndInsertBefore
    298             ? static_cast<HWND>(*mapAt(hwndInsertBefore))
    299             : 0);
     296            taskbarList->SetTabOrder(*mapAt(hwndChild),
     297                hwndInsertBefore
     298                ? static_cast<HWND>(*mapAt(hwndInsertBefore))
     299                : 0);
    300300        }
    301301    }
     
    929929void MainFrame::AddChildWindow( HWND hwndChild )
    930930{
    931     taskbarList->RegisterTab( hwndChild );
     931    if (taskbarList)
     932    {
     933        taskbarList->RegisterTab( hwndChild );
     934    }
    932935}
    933936
    934937void MainFrame::DeleteChildWindow( HWND hwndChild )
    935938{
    936     taskbarList->UnregisterTab( hwndChild );
     939    if (taskbarList)
     940    {
     941        taskbarList->UnregisterTab( hwndChild );
     942    }
    937943}
    938944
    939945void MainFrame::ActivateChildWindow( HWND hwndChild )
    940946{
    941     taskbarList->SetTabActivate( hwndChild );
     947    if (taskbarList)
     948    {
     949        taskbarList->SetTabActivate( hwndChild );
     950    }
    942951}
    943952
    944953void MainFrame::SetTabOrder( HWND hwndChild, HWND hwndInsertBefore )
    945954{
    946     taskbarList->SetTabOrder( hwndChild, hwndInsertBefore );
     955    if (taskbarList)
     956    {
     957        taskbarList->SetTabOrder( hwndChild, hwndInsertBefore );
     958    }
    947959}
    948960
    949961void MainFrame::InvalidateBitmap( HWND hwndChild )
    950962{
    951     taskbarList->InvalidateIconicBitmaps( hwndChild );
     963    if (taskbarList)
     964    {
     965        taskbarList->InvalidateIconicBitmaps( hwndChild );
     966    }
    952967}
    953968
Note: See TracChangeset for help on using the changeset viewer.