코드 조각31 WM_SYSCOMMAND http://winapi.co.kr/reference/Message/WM_SYSCOMMAND.htm http://blog.naver.com/PostView.nhn?blogId=pavonine116&logNo=50017432318 ReleaseCapture(); this->Perform(WM_SYSCOMMAND,0xf012,0); WPARAM에 사용할 수 있는것들 #define SC_SZLEFT (0xF001) #define SC_SZRIGHT (0xF002) #define SC_SZTOP (0xF003) #define SC_SZTOPLEFT (0xF004) #define SC_SZTOPRIGHT (0xF005) #define SC_SZBOTTOM (0xF006) #define SC_SZBOTTOMLEFT.. 2012. 3. 15. XfGetTime() double XfGetTime(void) { LARGE_INTEGER liEndCounter,liFrequency ; QueryPerformanceCounter(&liEndCounter); QueryPerformanceFrequency(&liFrequency); return (liEndCounter.QuadPart / (double)liFrequency.QuadPart) * 1000; } 2012. 3. 15. Printf 함수 구현 void Printf( char * lpszFormat, ...) { int nBuf; char acLogMsg[5000]; va_list args; va_start(args, lpszFormat); nBuf = vsprintf(acLogMsg , lpszFormat, args); va_end(args); if (nBuf < 0) return; } 2012. 3. 15. IO 파일에서 섹션 리스트를 가져오는 함수 m_iniFile=new TIniFile(fName); TStringList *SectionLst=new TStringList; try { m_iniFile->ReadSections(SectionLst); LoadObject(SectionLst); } __finally { } 2012. 3. 15. 클립보드 사용 방법 // IO이름을 클립보드에 복사해넣기 if( Shift.Contains(ssCtrl)) Clipboard()->AsText = "\""+m_CrntIo->Name+"\""; else Clipboard()->AsText = "IoMgr[\"" + m_CrntIo->Name+ "\"]->"; 2012. 3. 15. 이전 1 2 3 4 5 6 7 다음