Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Cambalinho

Page 1 of 35 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    19
    Views
    716

    Re: win32 - how can i build a Region?

    when i do the Mouse Hover above the Region control... yes
  2. Replies
    19
    Views
    716

    Re: win32 - how can i build a Region?

    1 - if i use that, Region, code(i even have a nice class), the ToolTip isn't showed;

    class region
    {

    private:

    BYTE* Get24BitPixels(HBITMAP pBitmap, WORD *pwWidth, WORD *pwHeight)
    {...
  3. Replies
    19
    Views
    716

    Re: win32 - how can i build a Region?

    thanks for all.
    now i have another question: looking the functions on #3, how these 2 functions can affect the ToolTip been showed or not?
    (if i don't use them, the ToolTip is showed, else isn't)
  4. Replies
    19
    Views
    716

    Re: win32 - how can i build a Region?

    i don't know another way for avoid flickering :(
    what i know is:

    case WM_ERASEBKGND:
    return TRUE;



    and that 2 styles.
    i read that and more from:...
  5. Replies
    19
    Views
    716

    Re: win32 - how can i build a Region?

    what is kill me is the parent styles for avoid the flicker: 'WS_CLIPCHILDREN | WS_CLIPSIBLINGS', because i can't show the child control transparent :(
  6. Replies
    19
    Views
    716

    Re: win32 - how can i build a Region?

    i'm sorry, but how can i use the TransparentBlt(), with NULL HBRUSH, when the parent have the 'WS_CLIPCHILDREN | WS_CLIPSIBLINGS' styles?(yah the control isn't showed transparent when we use the...
  7. Re: win32 - how copy the parent background?

    in these case the parent DC is only a green brush. so i'm getting a white brush, that isn't right
  8. Re: win32 - how copy the parent background?

    i need copy the painted DC area, where is the child control, when the child control is erased
  9. Re: win32 - how copy the parent background?

    it's the HDC area that's painted with WM_PAINT message(for get persistence graphics)
  10. win32 - how copy the parent background?

    how can i copy the parent window background(child control back position)?
    from(method 1):...
  11. Replies
    19
    Views
    716

    Re: win32 - how can i build a Region?

    i know build a mask. the backcolor is white and the rest is black. i don't know the 3 BitBlt() raster combinations.
    but if i do that, it will hide the control backcolor?
  12. Re: win32 - how the ::DrawText() RECT can change the Region size?

    seems that the only way is draw the image, destroying the region and then create a new region:


    void DrawText(string strText,int PosX=0, int PosY=0)
    {
    // geting the text rectangle...
  13. Re: win32 - how the ::DrawText() RECT can change the Region size?

    but these code don't:

    char *text=(char*)inst->strCaption.c_str();

    RECT b={test.rcPaint.left+2, test.rcPaint.top, test.rcPaint.right-2, test.rcPaint.bottom};
    ...
  14. win32 - how the ::DrawText() RECT can change the Region size?

    see my DrawText():

    void DrawText(string strText, int x=0, int y=0)
    {
    // geting the text rectangle
    RECT r = { 0, 0, 0, 0 };
    char *text=(char*)strText.c_str();
    ...
  15. Replies
    19
    Views
    716

    Re: win32 - how can i build a Region?

    finally i have 1 working code:

    BYTE* Get24BitPixels(HBITMAP pBitmap, WORD *pwWidth, WORD *pwHeight)
    {
    // a bitmap object just to get bitmap width and height
    BITMAP bmpBmp;

    //...
  16. Re: [win32] - avoid flicker and do a correct redraw

    i have tested now. the parente using the WS_EX_COMPOSITED extended window style and the child control using the WS_EX_TRANSPARENT extended window style, but i get some flickers too.
    nothing better...
  17. Re: [win32] - avoid flicker and do a correct redraw

    lets going back, please.
    the flicker happens when 1 color 1 showed aboved other(like the show the backcolor 2 times), right?
    the WS_CLIPCHILDREN can resolve that, but i can when several problems...
  18. Re: win32 - how can i copy the parent background?

    that's why the BitBlt() give me a black rectangle. understood
    thanks for correct me
  19. Replies
    19
    Views
    716

    win32 - how can i build a Region?

    i have these code for create an Region:


    class MemoryDC
    {
    private:
    HDC memoryDC;

    public:
    MemoryDC ()
  20. Re: [win32] - avoid flicker and do a correct redraw

    the Layered, for child controls, only works with windows 8 or above
  21. win32 - how can i copy the parent background?

    is there any way for copy the parent background(behind the child control)?
  22. Re: [win32] - avoid flicker and do a correct redraw

    i'm confused with just 1 thing that i can't do with WS_CLIPCHILDREN :(
    the WS_CLIPCHILDREN don't let me clear the child control, unless i fill it with a rectangle.
    can i clear the child control...
  23. Re: [win32] - avoid flicker and do a correct redraw

    so the only way is copy the parent background, right?
  24. Re: [win32] - avoid flicker and do a correct redraw

    let me ask 1 thing: using the WS_CLIPCHILDREN, why the control ins't clean before use the WM_PAINT?(i'm testing these too)
  25. Re: [win32] - avoid flicker and do a correct redraw

    i can make it transparent, but without the WS_CLIPCHILDREN. without it, i have flickers :(
Results 1 to 25 of 865
Page 1 of 35 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center