Changeset 778 in dev for branches/egtra/ab5.0/abdev/abdev/DrawBuffer.cpp
- Timestamp:
- Jan 24, 2011, 2:01:54 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/abdev/DrawBuffer.cpp
r772 r778 273 273 }; 274 274 275 static 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 275 287 void TextEdit_DrawBuffer(HDC hdc,int WndNum,bool drawDirectly){ 276 288 int i,i2; … … 307 319 OnePage_CharHeight, 308 320 iLineNumberTextCount, 309 drawDirectly || GetSystemMetrics(SM_REMOTESESSION));321 drawDirectly || IsRemoteSession()); 310 322 311 323
Note:
See TracChangeset
for help on using the changeset viewer.