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
B

Burz

@Burz
About
Posts
7
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • OnSetCursor and the keyboard
    B Burz

    This works fine; [code] BOOL m_Cntrl = FALSE; BOOL CtestView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) { if (m_Cntrl) { ::SetCursor(AfxGetApp()->LoadStandardCursor(IDC_CROSS)); return true; } else { return CScrollView::OnSetCursor(pWnd, nHitTest, message); } } void CtestView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) { if(nChar == VK_CONTROL){ m_Cntrl = TRUE; } CScrollView::OnKeyDown(nChar, nRepCnt, nFlags); } void CtestView::OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags) { if(nChar == VK_CONTROL){ m_Cntrl = FALSE; } CScrollView::OnKeyUp(nChar, nRepCnt, nFlags); } [/code]

    C / C++ / MFC

  • How to create a sizeable dialog (under MFC)?
    B Burz

    GetWindowRect or GetClientRect And MoveWindow Or SetWindowPos

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

  • Printing with GUI+
    B Burz

    Here is answer if somebody whant in: void CtestView::OnPrint(CDC* pDC, CPrintInfo* pInfo) { int cxPage = pDC->GetDeviceCaps(HORZRES); int cyPage = pDC->GetDeviceCaps(VERTRES); Graphics g(pDC->m_hDC); g.SetPageUnit(UnitInch); g.DrawImage(m_pBitmap, 0, 0, cxPage/g.GetDpiX() , cyPage/g.GetDpiX() ); }

    C / C++ / MFC graphics question

  • How to create a sizeable dialog (under MFC)?
    B Burz

    How about somthing like this? [code] // Resize the list control contained in the view to // fill the entire view when the view's window is // resized. CMyView is a CView derived class. void CMyDlg::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); // Resize list to fill the whole view. if(nType == SIZE_MAXIMIZED) m_List.MoveWindow (0, 0, cx, cy); } [/code]

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

  • Printing with GUI+
    B Burz

    I use GUI+, object Graphics and Bitmap. No BitBlt or StretchDIBBits!

    C / C++ / MFC graphics question

  • Printing with GUI+
    B Burz

    I read that article, but it dont contain answer: What and how i need to transform to see preview and printing page in the same style, using GUI+ ...

    C / C++ / MFC graphics question

  • Printing with GUI+
    B Burz

    I want to print bitmap on full page, so i wright: [code] void CtestView::OnPrint(CDC* pDC, CPrintInfo* pInfo) { int cxPage = pDC->GetDeviceCaps(HORZRES); int cyPage = pDC->GetDeviceCaps(VERTRES); Graphics g(pDC->m_hDC); g.DrawImage(m_pBitmap, 0, 0, cxPage , cyPage ); } [/code] Thats ok in preview but not in printer. What transformations i need to do?

    C / C++ / MFC graphics 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