Changeset 165 for trunk/MFCtooling
- Timestamp:
- 08/17/11 10:38:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MFCtooling/userlog/userlog.cpp
r64 r165 21 21 22 22 #ifdef __USING_COSTUMLOG__ 23 static std:: ofstream logfile;23 static std::wofstream logfile; 24 24 #endif 25 25 … … 29 29 static unsigned long long totalMsgCounter = 0; 30 30 static bool msgCounterChange = false; 31 #endif 32 33 #ifndef MAXINT 34 #define MAXUINT ((UINT)~((UINT)0)) 35 #define MAXINT ((INT(MAXUINT >> 1)) 31 36 #endif 32 37 … … 395 400 pos += swprintf_s(msgBuffer+pos,bufsize-pos,L"<param name=\"point.x\" value=\"%i\"/>", pointx); 396 401 pos += swprintf_s(msgBuffer+pos,bufsize-pos,L"<param name=\"point.y\" value=\"%i\"/>", pointy); 397 402 398 403 if(msg->message == WM_LBUTTONUP) 399 404 { … … 408 413 } 409 414 415 416 retVal = GetClassName(msg->hwnd, buffer, 128); 417 if( retVal >= -1 && retVal < MAXINT && (!lstrcmpi(buffer, L"ComboLBox")||!lstrcmpi(buffer, L"ComboBox")) ) 418 { 419 scrollPos = (int)SendMessage(msg->hwnd, CB_GETCURSEL, 0, 0); 420 pos += swprintf_s(msgBuffer+pos,bufsize-pos,L"<param name=\"scrollPos\" value=\"%i\"/>", scrollPos); 421 } 422 410 423 //check the TabControl selection, store it in "scrollPos" 411 424 //no selection = -1 … … 506 519 logfile << currentTime.wHour << ":" << currentTime.wMinute << ":" << currentTime.wSecond << ":"; 507 520 logfile << currentTime.wMilliseconds << "\t"; 508 logfile << buffer << std::endl;521 logfile << LOGPREFIX << msgBuffer << std::endl; 509 522 #endif 510 523 delete messageStr;
Note: See TracChangeset
for help on using the changeset viewer.