Ignore:
Timestamp:
Mar 19, 2012, 1:59:48 AM (12 years ago)
Author:
イグトランス (egtra)
Message:

egtraブランチの内容をマージ。

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ab5.0/abdev

    • Property svn:ignore set to
      *.opensdf
      *.sdf
      *.suo
      *.user
      int
      ipch
      out
  • trunk/ab5.0/abdev/abdev/DrawBuffer.cpp

    r772 r828  
    222222
    223223                if(bBreakPoint){
    224                     DrawIconEx(memdc,3,i*font_height+(font_height-16)/2,
    225                         (HICON)LoadImage(hIconResInst,MAKEINTRESOURCE(IDI_BREAKPOINT_FLAG),IMAGE_ICON,16,16,LR_SHARED),
    226                         16,16,0,NULL,DI_NORMAL);
     224                    ActiveBasic::Resource::UniqueHIcon hicon(ActiveBasic::Resource::LoadIconAlt(hIconResInst, IDI_BREAKPOINT_FLAG, 16, 16));
     225                    DrawIconEx(memdc,3,i*font_height+(font_height-16)/2,hicon.get(),16,16,0,NULL,DI_NORMAL);
    227226                }
    228227                else{
     
    272271    }
    273272};
     273
     274static bool IsRemoteSession()
     275{
     276    OSVERSIONINFO vi = {sizeof vi};
     277    BOOL ret = ::GetVersionEx(&vi);
     278    if (ret && vi.dwMajorVersion >= 5)
     279    {
     280        const int SM_REMOTESESSION = 0x1000;
     281        return GetSystemMetrics(SM_REMOTESESSION);
     282    }
     283    return false;
     284}
    274285
    275286void TextEdit_DrawBuffer(HDC hdc,int WndNum,bool drawDirectly){
     
    307318        OnePage_CharHeight,
    308319        iLineNumberTextCount,
    309         drawDirectly || GetSystemMetrics(SM_REMOTESESSION));
     320        drawDirectly || IsRemoteSession());
    310321
    311322
Note: See TracChangeset for help on using the changeset viewer.