problem in using CWindowGc

Login to reply to this topic.
Thu, 2006-09-28 09:30
Joined: 2006-05-10
Forum posts: 71
Hi all,

           I want to use my own CWindowGc(created from CWsScreenDevice's CreateContext() API) object other than the system's Gc(which is returned after SystemGc() function). I tried deactivating the systemGc for creating my Gc, but im getting WSERV panic. Im even unable to activate my Gc and use it. As per SDK Documentation if we have to use a GraphicsContext it must be in Active state.(but im getting WSERV 9 panic)

           Did any one successful in drawing something on the window with ur own Gc and not the SystemGc Huh :Huh?? If so please guide me...

Thu, 2006-09-28 10:47
Joined: 2006-08-22
Forum posts: 2
Re: problem in using CWindowGc
yes u can use the following code its working for me
    CWindowGc* gc;
    User::LeaveIfError(screen->CreateContext(gc));
    CleanupStack::PushL(gc);
hope it helps
Thu, 2006-09-28 11:27
Joined: 2006-05-10
Forum posts: 71
Re: problem in using CWindowGc
Hi,

          Have you tried it in 3rd edition SDK?Huh Did you tried drawing anything using that newly created gc?Huh If so, how did you do that??? Do we need to activate that newly created gc?Huh

     please throw some more light on this so that it will be helpful for me.... Thnx for ur reply....
  • Login to reply to this topic.