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
T

tmaggioli

@tmaggioli
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Dialog: the limits
    T tmaggioli

    Thanks for the quick answer but it was not useful. I'm pretty sure that on the net there are answers to my question, but the problem is to find the one that works well and exactly as i need. Now, i have modify the MFC example DLGTEMP and i have understand how to set dinamically the dimension of a Dialog, and how, where and whom string-based controls (static text, buttons, edit box,etc) to put inside it, at run-time. My first trick is that i don't know how to set different fonts inside my dialog. My second problem is to find a simply method to load dinamically bitmap from a file (.bmp) and to show it inside my dialog in a position decided at run-time. I see some projects, inside the CP site, to load and manipulate image file but they seems too much complex for my need. Does exist controls that i can use inside dialogs as a dynamic container for others controls? Thanks for every non banal suggestions

    C / C++ / MFC c++ help

  • Dialog: the limits
    T tmaggioli

    Hi all, i'm sorry if my request was already discussed in this site but for now i don't find the information that i need. I'm working on a existing SDI project inside MFC VC 6.0. I need to make a window that open with variable dimensions and fields, depending on the information that i pass to it. In other terms i need to have a window that change in accordance of different user input (objects clicked with composition defined at runtime). The possible fields to show in the window are texts (of a variable size and font) and image (.bmp). My ultimate target is to create a window that have a structure that can be later "simply" printed. My problem is the choice of the object(s) to use: i have start using the Dialog wizard of MFC but it seems limited. I don't know if it is the better way to make it... I don't know if it is better to make a child frame window. I think that probably there are additional components/class/library on the net that can do that, but i don't find it for now. Thanks in advantage for all the suggestions.

    C / C++ / MFC c++ help

  • bitblt problem
    T tmaggioli

    I'm sorry but i see only now that the bitblt operate perfectly and the problem is another.... :doh: Thanks to All, TM

    C / C++ / MFC help c++ graphics question

  • bitblt problem
    T tmaggioli

    I use the function BitBlt in this way: ... ... /** caller*/ pPGMBitmap->copyTo (CpyBitmapDisplay.GetDC(), 0, 0, BMPSize.cx, BMPSize.cy, 0, 0); ... ... ... ... /** handler*/ void CBitmapDisplay::copyTo(CDC *pdc, int xDest, int yDest, int w, int h, int xSrc, int ySrc) { if(pdc && hDC_.GetSafeHdc() != 0) pdc->BitBlt(xDest, yDest, w,h, &hDC_, xSrc, ySrc, SRCCOPY); } ... ... where &hDC is a CDC object of the class CBitmapDisplay.... Thanks TM

    C / C++ / MFC help c++ graphics question

  • bitblt problem
    T tmaggioli

    Hi All, i have a problem with the MFC function of the class CDC: BOOL BitBlt( int x, int y, int nWidth, int nHeight, CDC* pSrcDC, int xSrc, int ySrc, DWORD dwRop ) When i use it for copy a bitmap with an area (in logic coordinates) minor than 8840000 (es. nWidth=5200 e nHeight=1700) it works properly, but with a major value it seems doesn't copy anything and the copy of the original bitmap is completely black. This bitmap resulting by the copy is already set to black previously when i use the function CBitmap::CreateCompatibleBitmap ... so i say that the BitBlt doesn't have any effect in this case.... Did you know why it happens?? Did you know some others MFC functions for doing the copy of bitmaps?? I hope i was enought clear to explain the problem. I'm sorry if it was already post but i didn't found it. Thanks in advantage for any help Bye TM

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