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
I

Igor Jerosimic

@Igor Jerosimic
About
Posts
12
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • swap two values withou using temp. storage
    I Igor Jerosimic

    You should be aware of the XCHG assembler instruction which will exchange two values, uses 3 cpu clocks. Your optimizations will, in some cases, use 3x more CPU clocks, larger binary and unreadable code.

    C / C++ / MFC help

  • Do you use dual Monitor for Coding
    I Igor Jerosimic

    Splitter will just clone your picture to two monitors, why would you want that? SLI if you have nvidia gpu, which you dont... :) with ati it's called crossfire.

    The Lounge com question

  • How to draw a bitmap on top of button?
    I Igor Jerosimic

    I did it, it works now, thank you.

    C / C++ / MFC graphics help tutorial question

  • How to draw a bitmap on top of button?
    I Igor Jerosimic

    OK thanks, this looks like something i needed.

    C / C++ / MFC graphics help tutorial question

  • How to draw a bitmap on top of button?
    I Igor Jerosimic

    I tried that already, look at this picture http://img214.imageshack.us/img214/6206/drawingfx6.png It draws button but without XP styles...

    C / C++ / MFC graphics help tutorial question

  • How to draw a bitmap on top of button?
    I Igor Jerosimic

    CImageButton class is very lousy way of replacing API function DrawFrameControl and i definitely don't need that... All that code is easily replaced with these 4 lines of code: CPaintDC dc(this); CRect rc; GetClientRect(&rc); dc.DrawFrameControl(&rc, DFC_BUTTON, DFCS_BUTTONPUSH); http://img214.imageshack.us/img214/6206/drawingfx6.png

    C / C++ / MFC graphics help tutorial question

  • How to draw a bitmap on top of button?
    I Igor Jerosimic

    Can you explain how do you think that i should use CBitmapButton class? As i see that class only helps in inserting bitmaps on to buttons, but it still needs me to draw the button (because my bitmap is displayed only on one small portion of button).

    C / C++ / MFC graphics help tutorial question

  • How to draw a bitmap on top of button?
    I Igor Jerosimic

    I will try.

    C / C++ / MFC graphics help tutorial question

  • How to draw a bitmap on top of button?
    I Igor Jerosimic

    OK thank you all for your answers, i will try it out and let you know if it's woking. In case my english is so bad that nobody understood what i want to do :), I want to draw something like this http://img252.imageshack.us/img252/2254/codeprojectkc1.png

    C / C++ / MFC graphics help tutorial question

  • How to draw a bitmap on top of button?
    I Igor Jerosimic

    I already tried something with WM_PAINT, but it didn't work. And after reading this article in MSDN i give up on WM_PAINT... "Handling WM_PAINT The most extreme choice is to implement a WM_PAINT handler and do all the painting yourself." http://msdn2.microsoft.com/en-us/library/ms364048(vs.80).aspx

    C / C++ / MFC graphics help tutorial question

  • How to draw a bitmap on top of button?
    I Igor Jerosimic

    It stops on some ASSERT... I know that i have to draw the entire button by myself, but my question is how do i let windows draw that button for me (with al it's visual styles) and i just want to draw small bitmap in right corner of button?

    C / C++ / MFC graphics help tutorial question

  • How to draw a bitmap on top of button?
    I Igor Jerosimic

    I want to draw a small arrow bitmap on top of already drawn button. I tried with calling default drawing proc before my code for drawing bitmap but it gives me some error. OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct) { CDialog::OnDrawItem(nIDCtl, lpDrawItemStruct); HDC thdc = CreateCompatibleDC(lpDrawItemStruct->hDC); HGDIOBJ tobj = SelectObject(thdc, LoadBitmap(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_ARROW_DOWN))); TransparentBlt(lpDrawItemStruct->hDC, lpDrawItemStruct->rcItem.right - 20, lpDrawItemStruct->rcItem.top + (lpDrawItemStruct->rcItem.bottom - lpDrawItemStruct->rcItem.top - 16) / 2, 16, 16, thdc, 0, 0, 16, 16, RGB(255, 0, 255)); SelectObject(thdc, tobj); DeleteDC(thdc); } if i exclude "CDialog::OnDrawItem(nIDCtl, lpDrawItemStruct);" then code works, but there is no borders and caption text, just my bitmap.

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