Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

AntonlioX

@AntonlioX
About
Posts
11
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Custom Controls in VC++6
    A AntonlioX

    Sorry for my carelessness ,I typed the .clw as .dsw . AntonlioX

    C / C++ / MFC c++ tutorial question

  • DLL
    A AntonlioX

    searches dll in the following sequence: The directory from which the application loaded. The current directory. Windows 95 and Windows 98: The Windows system directory. Use theGetSystemDirectory function to get the path of this directory. Windows NT: The 32-bit Windows system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is SYSTEM32. Windows NT: The 16-bit Windows system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is SYSTEM. The Windows directory. Use theGetWindowsDirectory function to get the path of this directory. The directories that are listed in the PATH environment variable. AntonlioX

    C / C++ / MFC question

  • Custom Controls in VC++6
    A AntonlioX

    You can remake the .dsw file . The steps is in the following : 1 Delete the old .dsw file in your project's directory 2 goto VC6 ,it will notify you to recreate the dsw file . Then you should select all files int listbox and create it . Above is all. Try it AntonlioX

    C / C++ / MFC c++ tutorial question

  • how to make the application starts with the system?
    A AntonlioX

    Another Method is to place a shortcut of your application on the directory "startup" AntonlioX

    C / C++ / MFC c++ tutorial question

  • How to develop real-time communication program through RTP
    A AntonlioX

    Recently I have read some materials on RTP ,But I still could not know how to realize it ? Can anybody tell me some advice . I have known the RTP/RTCP packet structure ,but I don't know how to fill the structure ,for I wonder how to get the original data used to fill in the stucture ,which I guessed is realized by myself not the RTP protocol. AntonlioX

    C / C++ / MFC tutorial question

  • about Coordinate Map Mode and compatible DC ???
    A AntonlioX

    Hi Jose: Thank you very much .What you have said is much useful ! AntonlioX

    C / C++ / MFC graphics tutorial question

  • Get Controll?
    A AntonlioX

    :laugh:Hi Larsson : I could not understand your meaning .But if you want to get the char when you click a certain key of keyboard ,you can use the message map to hook the key down message. The example is in the following : // you should ooverride the "PreTranslateMessage" BOOL CMyClientDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class switch(pMsg->message) { case WM_KEYDOWN : switch(pMsg->wParam) { case 'A': //add code here to get the char A break; case 'B': //add code here to get the char B break; case 'B': //add code here to get the char C break; } break; case WM_KEYUP: switch(pMsg->wParam) { case 'A': //add code here to get the char A break; case 'B': //add code here to get the char B break; case 'B': //add code here to get the char C break; } } break; } return CDialog::PreTranslateMessage(pMsg); } AntonlioX

    C / C++ / MFC c++ help tutorial question

  • about Coordinate Map Mode and compatible DC ???
    A AntonlioX

    CharlieG : Thank you very much ! I have solved this question by now ,the key of which is the ordinate of the MemDC should be set correct . Antonliox

    C / C++ / MFC graphics tutorial question

  • about Coordinate Map Mode and compatible DC ???
    A AntonlioX

    The aim of my case is to paint picture in the memory-DC (compatible DC) ,for preventing glitter when refresh(repaint)! And I choose the maths coordinate mode not the MM_TEXT .That is X-axis ascending from left to righgt while Y-axis from bottom to top!

    C / C++ / MFC graphics tutorial question

  • about Coordinate Map Mode and compatible DC ???
    A AntonlioX

    I think the problem in my case is the " coordinate map ". I don't know When I excute the following codes: CRect rect; GetClientRect(rect); CClientDC dc (this); dc.SetMapMode (MM_ISOTROPIC); dc.SetWindowExt (rect.Width (), -rect.Height ()); dc.SetViewportExt (rect.Width (), -rect.Height ()); dc.SetViewportOrg (point); , Whether I should also change the memDC's coordinate map mode ,just like the following : CDC memDC; memDC.CreateCompatibleDC(&dc); memDC.SetMapMode(MM_ISOTROPIC); memDC.SetWindowExt(rect.Width(), -rect.Height()); memDC.SetViewportExt(rect.Width(), -rect.Height()); memDC.SetViewportOrg (point); aa

    C / C++ / MFC graphics tutorial question

  • about Coordinate Map Mode and compatible DC ???
    A AntonlioX

    How to change the Coordinate Map Mode ,create a compatible DC used to draw ,then call bitblt() to show the picture? my code in the following , But when I run it ,there is nothing to be showed! void CTestSetMapModeView::OnLButtonDown(UINT nFlags, CPoint point) { CRect rect; GetClientRect(rect); CClientDC dc (this); dc.SetMapMode (MM_ISOTROPIC); dc.SetWindowExt (rect.Width (), -rect.Height ()); dc.SetViewportExt (rect.Width (), -rect.Height ()); dc.SetViewportOrg (point); CDC memDC; memDC.CreateCompatibleDC(&dc); memDC.SetMapMode(MM_ISOTROPIC); memDC.SetWindowExt(rect.Width(), -rect.Height()); memDC.SetViewportExt(rect.Width(), -rect.Height()); memDC.SetViewportOrg (point); CBitmap bitmap,*pOldBitmap; bitmap.CreateCompatibleBitmap(&dc,rect.Width(),rect.Height()); pOldBitmap=memDC.SelectObject(&bitmap); memDC.BitBlt(-rect.Width()/2,rect.Height()/2,rect.Width(),rect.Height(),&dc,-rect.Width()/2,rect.Height()/2,SRCCOPY); //draw some pictures memDC.Ellipse(-50,50,50,-50); memDC.Ellipse(-10,20,10,-20); dc.BitBlt(-rect.Width()/2,rect.Height()/2,rect.Width(),rect.Height(),&memDC,-rect.Width()/2,rect.Height()/2,SRCCOPY ); memDC.SelectObject(pOldBitmap); bitmap.DeleteObject(); CView::OnLButtonDown(nFlags, point); }

    C / C++ / MFC graphics tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups