Re-designing tabcontrol

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fatih BOY

    #1

    Re-designing tabcontrol

    Hi,
    Does anyone knows how to handle painting of Tabcontrol??!
    I've override OnPaint and WndProc ( with m.Msg==WM_NCPAI NT) functions, but
    doesn't work!

    Thanks,
    Fatih BOY


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Re-designing tabcontrol

    Faith BOY,

    I don't believe that the Tabcontrol will ever get a WM_NCPAINT
    notification, since that message is used primarily for forms. You will want
    to handle the WM_PAINT message. Also, you might just want to override the
    OnPaint method as well.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Fatih BOY" <fatih@smartcod ing.org> wrote in message
    news:eLLEfCvnDH A.2964@tk2msftn gp13.phx.gbl...[color=blue]
    > Hi,
    > Does anyone knows how to handle painting of Tabcontrol??!
    > I've override OnPaint and WndProc ( with m.Msg==WM_NCPAI NT) functions, but
    > doesn't work!
    >
    > Thanks,
    > Fatih BOY
    >
    >[/color]


    Comment

    • Fatih BOY

      #3
      Re: Re-designing tabcontrol

      OnPaint does not help :\
      What is id for WM_PAINT?!


      "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote in
      message news:%23mKyuFvn DHA.2200@TK2MSF TNGP12.phx.gbl. ..[color=blue]
      > Faith BOY,
      >
      > I don't believe that the Tabcontrol will ever get a WM_NCPAINT
      > notification, since that message is used primarily for forms. You will[/color]
      want[color=blue]
      > to handle the WM_PAINT message. Also, you might just want to override the
      > OnPaint method as well.
      >
      > Hope this helps.
      >
      >
      > --
      > - Nicholas Paldino [.NET/C# MVP]
      > - mvp@spam.guard. caspershouse.co m
      >
      > "Fatih BOY" <fatih@smartcod ing.org> wrote in message
      > news:eLLEfCvnDH A.2964@tk2msftn gp13.phx.gbl...[color=green]
      > > Hi,
      > > Does anyone knows how to handle painting of Tabcontrol??!
      > > I've override OnPaint and WndProc ( with m.Msg==WM_NCPAI NT) functions,[/color][/color]
      but[color=blue][color=green]
      > > doesn't work!
      > >
      > > Thanks,
      > > Fatih BOY
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Nicholas Paldino [.NET/C# MVP]

        #4
        Re: Re-designing tabcontrol

        Faith BOY,

        0x000F


        --
        - Nicholas Paldino [.NET/C# MVP]
        - mvp@spam.guard. caspershouse.co m

        "Fatih BOY" <fatih@smartcod ing.org> wrote in message
        news:uusHkNvnDH A.1296@TK2MSFTN GP09.phx.gbl...[color=blue]
        > OnPaint does not help :\
        > What is id for WM_PAINT?!
        >
        >
        > "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote[/color]
        in[color=blue]
        > message news:%23mKyuFvn DHA.2200@TK2MSF TNGP12.phx.gbl. ..[color=green]
        > > Faith BOY,
        > >
        > > I don't believe that the Tabcontrol will ever get a WM_NCPAINT
        > > notification, since that message is used primarily for forms. You will[/color]
        > want[color=green]
        > > to handle the WM_PAINT message. Also, you might just want to override[/color][/color]
        the[color=blue][color=green]
        > > OnPaint method as well.
        > >
        > > Hope this helps.
        > >
        > >
        > > --
        > > - Nicholas Paldino [.NET/C# MVP]
        > > - mvp@spam.guard. caspershouse.co m
        > >
        > > "Fatih BOY" <fatih@smartcod ing.org> wrote in message
        > > news:eLLEfCvnDH A.2964@tk2msftn gp13.phx.gbl...[color=darkred]
        > > > Hi,
        > > > Does anyone knows how to handle painting of Tabcontrol??!
        > > > I've override OnPaint and WndProc ( with m.Msg==WM_NCPAI NT) functions,[/color][/color]
        > but[color=green][color=darkred]
        > > > doesn't work!
        > > >
        > > > Thanks,
        > > > Fatih BOY
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...