Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - how to paint mdiclient
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to paint mdiclient

 Post Reply Post Reply
Author
Message
ws0411101 View Drop Down
Newbie
Newbie


Joined: 18 November 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote ws0411101 Quote  Post ReplyReply Direct Link To This Post Topic: how to paint mdiclient
    Posted: 29 November 2010 at 4:25am
when i use extremeCommandBars, i should use :

        obj_extremeCommandBars.SetMDIClient(myMdiClient.Handle.ToInt32)

to bound the MdiClient object handle to the commandBars. commandBars get the handle of MdiClient,
but how can i paint some text on  the  MdiClient.


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 29 November 2010 at 10:00am
Hi,

Not sure if it works for .NET but please try

CommandBars.Workspace.AutoTheme = False;
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ws0411101 View Drop Down
Newbie
Newbie


Joined: 18 November 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote ws0411101 Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2010 at 5:26am
olegthank you!  but your ways didn't work, the text can't paint on the MdiCilent,
it seems that after i use this code:

   CommandBars.SetMDIClient(myMdiClient.Handle.ToInt32)
 
to set the MdiClient handle to CommandBars, the MdiClient  can't respond any event.
i define two sub to paint text, and binding them to event "Paint" and "Resize", like  this:

        AddHandler myMdiClient.Paint, AddressOf Mdi_OnPaint
        AddHandler myMdiClient.Resize, AddressOf Mdi_OnResize

but when i debug the program, the two sub doesn't execute.
do you have some other method to solve this problem?? thank you!



Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.