Changeset 697 in dev for trunk/ab5.0/abdev/abdev/src/MainFrame.cpp
- Timestamp:
- Jul 19, 2008, 9:03:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/src/MainFrame.cpp
r655 r697 171 171 } 172 172 173 ::LRESULT MainFrame::OnCreate( :: UINT msg, ::WPARAM wParam, ::LPARAM lParam, ::BOOL& handled)173 ::LRESULT MainFrame::OnCreate( ::CREATESTRUCT const* ) 174 174 { 175 175 // ウィンドウエリアマネージャに親ウィンドウを登録 … … 207 207 extern WNDPROC oldMainFrameWndProc; 208 208 oldMainFrameWndProc = (WNDPROC)::GetWindowLong( hOwner, GWL_WNDPROC ); 209 ::SetWindowLong ( hOwner, GWL_WNDPROC, (LONG)WindowFunc);209 ::SetWindowLongPtr( hOwner, GWL_WNDPROC, reinterpret_cast<LONG_PTR>(WindowFunc) ); 210 210 211 211 SetupWindow(hOwner); … … 517 517 void MainFrame::OnDropFiles( HDROP hDropInfo ) 518 518 { 519 int max = DragQueryFile(hDropInfo, -1,0,0);519 int max = DragQueryFile(hDropInfo,static_cast<DWORD>(-1),0,0); 520 520 for(int i=0;i<max;i++){ 521 521 char temporary[1024]; … … 526 526 } 527 527 528 void MainFrame::OnPaint( HDC dummy)528 void MainFrame::OnPaint( HDC ) 529 529 { 530 530 PAINTSTRUCT ps; … … 1096 1096 void CreateProcessWithStdHandle( const std::string &appPath, const std::string &cmdLine) 1097 1097 { 1098 std::string argsStr = (std::string)"\"" + appPath + "\" " + cmdLine;1098 std::string argsStr = "\"" + appPath + "\" " + cmdLine; 1099 1099 STARTUPINFO si; 1100 1100 PROCESS_INFORMATION pi; … … 1143 1143 1144 1144 if(IsNeedCompileForProject(1)) 1145 sprintf(temporary,"\"%s\" \"%s\" /debug /run /wnd:% 08x",temp2,temp3,m_hWnd);1145 sprintf(temporary,"\"%s\" \"%s\" /debug /run /wnd:%p",temp2,temp3,m_hWnd); 1146 1146 else 1147 sprintf(temporary,"\"%s\" \"%s\" /run /wnd:% 08x",temp2,temp3,m_hWnd);1147 sprintf(temporary,"\"%s\" \"%s\" /run /wnd:%p",temp2,temp3,m_hWnd); 1148 1148 1149 1149 // DLLオプション … … 1169 1169 if(!SetRunning(hChild)) return; 1170 1170 if(IsNeedCompile(MdiInfo[GetWndNum(hChild)]->path,1)) 1171 sprintf(temporary,"\"%s\" /debug /run /wnd:% 08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);1171 sprintf(temporary,"\"%s\" /debug /run /wnd:%p",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd); 1172 1172 else 1173 sprintf(temporary,"\"%s\" /run /wnd:% 08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);1173 sprintf(temporary,"\"%s\" /run /wnd:%p",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd); 1174 1174 1175 1175 //ブレークポイントをセーブ … … 1220 1220 lstrcpy( temp3, projectInfo.GetWorkDir().GetFullPath( temp3 ).c_str() ); 1221 1221 1222 sprintf(temporary,"\"%s\" \"%s\" /debug /wnd:% 08x",temp2,temp3,m_hWnd);1222 sprintf(temporary,"\"%s\" \"%s\" /debug /wnd:%p",temp2,temp3,m_hWnd); 1223 1223 1224 1224 //DLLオプション … … 1240 1240 //単独ソースコード 1241 1241 if(!SetRunning(hChild)) return; 1242 sprintf(temporary,"\"%s\" /debug /wnd:% 08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);1242 sprintf(temporary,"\"%s\" /debug /wnd:%p",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd); 1243 1243 } 1244 1244 … … 1282 1282 if(idProcess==0) return; 1283 1283 1284 sprintf(temporary,"/attach:%08x /wnd:% 08x",idProcess,m_hWnd);1284 sprintf(temporary,"/attach:%08x /wnd:%p",idProcess,m_hWnd); 1285 1285 1286 1286 //コンパイルビューをクリップするかどうか … … 1340 1340 lstrcpy( temp3, projectInfo.GetWorkDir().GetFullPath( temp3 ).c_str() ); 1341 1341 1342 sprintf(temporary,"\"%s\" \"%s\" /wnd:% 08x",temp2,temp3,m_hWnd);1342 sprintf(temporary,"\"%s\" \"%s\" /wnd:%p",temp2,temp3,m_hWnd); 1343 1343 1344 1344 //DLLオプション … … 1360 1360 //単独ソースコード 1361 1361 if(!SetRunning(hChild)) return; 1362 sprintf(temporary,"\"%s\" /wnd:% 08x",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd);1362 sprintf(temporary,"\"%s\" /wnd:%p",MdiInfo[GetWndNum(hChild)]->path.c_str(),m_hWnd); 1363 1363 } 1364 1364 … … 1707 1707 { 1708 1708 HWND hChild=::GetWindow(hClient,GW_CHILD); 1709 int WndNum=GetWndNum(hChild);1710 1709 1711 1710 TC_ITEM tcItem;
Note:
See TracChangeset
for help on using the changeset viewer.