Ignore:
Timestamp:
Jan 24, 2011, 2:01:54 AM (13 years ago)
Author:
イグトランス (egtra)
Message:

XP以前対応途中(Win98でabdevが起動するところまで)

File:
1 edited

Legend:

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

    r772 r778  
    273273};
    274274
     275static bool IsRemoteSession()
     276{
     277    OSVERSIONINFO vi = {sizeof vi};
     278    BOOL ret = ::GetVersionEx(&vi);
     279    if (ret && vi.dwMajorVersion >= 5)
     280    {
     281        const int SM_REMOTESESSION = 0x1000;
     282        return GetSystemMetrics(SM_REMOTESESSION);
     283    }
     284    return false;
     285}
     286
    275287void TextEdit_DrawBuffer(HDC hdc,int WndNum,bool drawDirectly){
    276288    int i,i2;
     
    307319        OnePage_CharHeight,
    308320        iLineNumberTextCount,
    309         drawDirectly || GetSystemMetrics(SM_REMOTESESSION));
     321        drawDirectly || IsRemoteSession());
    310322
    311323
Note: See TracChangeset for help on using the changeset viewer.