Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Sep 2006

    CreateWindowL doubts

    I am bit confused about createwindowL function

    protected: IMPORT_C void CreateWindowL();

    protected: IMPORT_C void CreateWindowL(const CCoeControl *aParent);

    what is the exact different between this two functions, when to use which function.

    SDK says, The control's window is created as a child of the parent control's window.

    But I want to know how this effects on a project ? Will by passing parent window reduces memory load or processing overhead ?

  2. #2
    Nokia Developer Champion
    Join Date
    May 2004

    Re: CreateWindowL doubts


    "Window hierarchy"

    Every application has a default Window Group, the CCoeEnv::RootWin(), work as its "top window" (actually Window Group is invisible and is only used as a way to organize windows).

    The CCoeControl::CreateWindowL() will set the CCoeEnv::RootWin() as its parent window, and CreateWindowL(const CCoeControl *aParent) will set the aParent's window as its parent window (but if aParent is not a window-owning control the RootWin() will be used).


    Ziteng Chen

Similar Threads

  1. undefined identifier CreateWindowL
    By c.kirmse in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2010-06-20, 13:41
  2. Replies: 13
    Last Post: 2008-01-16, 17:25
  3. Midlet for storing tickets in secure element.Implementation doubts
    By super_beda in forum Near Field Communication
    Replies: 1
    Last Post: 2007-10-12, 12:10
  4. Doubts On CAF
    By Rishi Kaura in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2007-05-08, 08:29
  5. some doubts regarding receiving faxces for a1000
    By Anjali Ram in forum Symbian
    Replies: 2
    Last Post: 2005-05-06, 06:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts