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 28 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: win32 - how put the static control transparent?

    seems for work correctly, the transparent, i must use 1 timer for copy the parent background and then show the text.. or i will always get the same background... tomorrow i will test it. thanks for...
  2. Re: win32 - how put the static control transparent?

    the problem was like you said before... the WS_EX_TRANSPARENT style... now i must do another way for copy what it's on parent for do a false transparent
  3. Re: win32 - how put the static control transparent?

    these don't make sence... the InvalidateRect() function helps me call the WM_PAINT message. but only for the parent and not the child controls and the buttons aren't affected.. i'm very confused :(...
  4. Re: win32 - how put the static control transparent?

    at least i can show the static(even in a transparent way) using the WM_PAINT message:

    case WM_PAINT:
    {

    PAINTSTRUCT ps;
    HDC hdc =...
  5. Re: win32 - how put the static control transparent?

    sorry.. i miss understood you and you didn't see the entire code.... see these code how i create the static control:

    WNDCLASS LabelClass;
    HINSTANCE mod =...
  6. Re: win32 - how put the static control transparent?

    so someone, before, give me an incomplete information.. the button i use 'C' too and works fine.. so, please correct me
  7. Re: win32 - how put the static control transparent?

    sorry, i have read here: http://msdn.microsoft.com/en-us/library/windows/desktop/bb787524%28v=vs.85%29.aspx
    for WM_CTLCOLORSTATIC message.

    and SetLayeredWindowAttributes:...
  8. Re: win32 - how put the static control transparent?

    so forgeting the WS_EX_TRANSPARENT extended style. what is the message that is before the show us the background(the brush color)?
    maybe i can ignored the brush and draw the rest... if i'm mistake...
  9. win32 - how put the static control transparent?

    i create the static control with the WS_EX_TRANSPARENT style:

    WNDCLASS LabelClass;
    HINSTANCE mod = (HINSTANCE)GetModuleHandle(NULL);

    ZeroMemory(&LabelClass,...
  10. Re: how send the class pointer with SetTimer()?

    that line 'timerprocedure();' only works when the HWND != NULL. but if 1 comment the line, the 'i' is counted normaly... why these 'bug'?
  11. Re: how send the class pointer with SetTimer()?

    true.. but see what i mean.. these line works:

    SetTimer( 0,reinterpret_cast<UINT>(this),uElapse,&Timer::_TimerProc);
    now see these function:


    void TimerProc(HWND hwnd,UINT uMsg,UINT...
  12. Re: how send the class pointer with SetTimer()?

    ok.. now i have 1 question for you ;)

    class Timer
    {

    private:
    void TimerProc(HWND hwnd,UINT uMsg,UINT idEvent,DWORD dwTime)
    {
    //timerprocedure();
    static int i=0;
  13. Re: how send the class pointer with SetTimer()?

    so i found 1 problem:

    class Timer
    {
    private:
    typedef std::function<void(void)> timerprocedure;
    timerprocedure tmrprocedure=NULL;
    static void CALLBACK _TimerProc(HWND hwnd,UINT...
  14. Re: how send the class pointer with SetTimer()?

    after some search, i found these post:

    "the callback func needs to be a staticfunction...a kind of 'hacky' approach is to pass your thisptr
    as the idEvent in the call to SetTimer, see the CTimer...
  15. Re: how send the class pointer with SetTimer()?

    the callback function is called, i have tested. but i'm not getting the pointer currectly :(
    because the lambda function isn't called :(
  16. Re: how send the class pointer with SetTimer()?

    sorry i don't know do that
  17. Re: how send the class pointer with SetTimer()?

    sorry .. no:(
    see the entire class:

    class Timer
    {
    private:
    typedef std::function<void(void)> timerprocedure;
    timerprocedure tmrprocedure;
    int MilliSecondsTimer;
    ...
  18. how send the class pointer with SetTimer()?

    - how can i send the class pointer with SetTimer() function?
    (i'm using it on a class)

    TimerId = SetTimer(0, 0, MilliSecondsTimer,*this->MyTimerProc);

    - how can i get the pointer from the...
  19. Re: [RESOLVED] c++ - GDIPLUS: how compare colors?

    i understand what you mean. but these is a personal thing. if i share my code, i must share the modificated files too.
    when i share my include file, i must say that too ;)
  20. Re: [RESOLVED] c++ - GDIPLUS: how compare colors?

    honestly.. thanks i ;)
  21. Re: [RESOLVED] c++ - GDIPLUS: how compare colors?

    sorry VictorN, now i found the Color enum: http://msdn.microsoft.com/en-us/library/windows/desktop/bb189018.aspx

    i did 1 thing with Color class ;)

    i add a new function from GetValue() function:...
  22. Re: c++ - GDIPLUS: how compare colors?

    resolved:


    if (clrBackColor.GetValue() == Gdiplus::Color::Transparent)

    i used the class object instead the GetValue(). i thot the object gived me the value directly,
    but now i know that...
  23. Re: c++ - GDIPLUS: how compare colors?

    sorry, i can't find the colors consts :(
    but heres the msdn documentation
    http://msdn.microsoft.com/en-us/library/ms534427%28v=vs.85%29.aspx
  24. Re: c++ - GDIPLUS: how compare colors?

    you did a mistake it's 'Transparent'. but the same error is showed :(

    "- no match for 'operator==' (operand types are 'Gdiplus::Color' and 'Gdiplus::Color');
    - the candidates are: note:...
  25. [RESOLVED] c++ - GDIPLUS: how compare colors?

    i have 1 color variable and i'm trying testing it's value:

    Gdiplus::Color clrBackColor=Gdiplus::Color::Transparent;
    if(clrBackColor==Gdiplus::Color::Transparent)
    but i get an error:
    "no match...
Results 1 to 25 of 680
Page 1 of 28 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