Sequence of Occurence of messages - Programmer

This is a discussion on Sequence of Occurence of messages - Programmer ; WM_DESTROY WM_SIZE WM_CREATE WM_PAINT WM_CLOSE Eliminating repetition, please explain what order do the above messages occur in the lifecycle of a Window? Thanks in advance....

+ Reply to Thread
Results 1 to 3 of 3

Thread: Sequence of Occurence of messages

  1. Sequence of Occurence of messages

    WM_DESTROY
    WM_SIZE
    WM_CREATE
    WM_PAINT
    WM_CLOSE
    Eliminating repetition, please explain what order do the above
    messages occur in the lifecycle of a Window? Thanks in advance.


  2. Re: Sequence of Occurence of messages

    In article <1143556451.104254.161910@e56g2000cwe.googlegroups. com>,
    vermasucheta@rediffmail.com says...
    > WM_DESTROY
    > WM_SIZE
    > WM_CREATE
    > WM_PAINT
    > WM_CLOSE
    > Eliminating repetition, please explain what order do the above
    > messages occur in the lifecycle of a Window? Thanks in advance.


    create
    size
    ....
    paint / size (any number of times)
    ....
    close
    destroy

    You could find this out easily for yourself by making handlers and
    inserting breakpoints.

    - Gerry Quinn

  3. Re: Sequence of Occurence of messages

    Thanks Gerry!!

    Gerry Quinn wrote:
    > In article <1143556451.104254.161910@e56g2000cwe.googlegroups. com>,
    > vermasucheta@rediffmail.com says...
    > > WM_DESTROY
    > > WM_SIZE
    > > WM_CREATE
    > > WM_PAINT
    > > WM_CLOSE
    > > Eliminating repetition, please explain what order do the above
    > > messages occur in the lifecycle of a Window? Thanks in advance.

    >
    > create
    > size
    > ...
    > paint / size (any number of times)
    > ...
    > close
    > destroy
    >
    > You could find this out easily for yourself by making handlers and
    > inserting breakpoints.
    >
    > - Gerry Quinn



+ Reply to Thread