Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5992087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:28:52+00:00 2026-05-22T23:28:52+00:00

I tried to create button (child window) inside WM_NCCREATE message, and its position seemed

  • 0

I tried to create button (child window) inside WM_NCCREATE message, and its position seemed to be created respected to screen coordinates, rather than client coordinates. At first, I thought WM_CREATE and WM_NCCREATE provide us the same handle to window, but this seem to be untrue. Therefore, can anyone explain me the differences between WM_CREATE and WM_NCCREATE messages? Also what are the differences between handle to window in WM_CREATE and in WM_NCCREATE?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:28:52+00:00Added an answer on May 22, 2026 at 11:28 pm

    Per MSDN:

    WM_NCCREATE:

    Sent prior to the WM_CREATE message
    when a window is first created.

    Return Value:

    If an application processes this
    message, it should return TRUE to
    continue creation of the window. If
    the application returns FALSE, the
    CreateWindow or CreateWindowEx
    function will return a NULL handle.

    WM_CREATE:

    Sent when an application requests that
    a window be created by calling the
    CreateWindowEx or CreateWindow
    function. (The message is sent before
    the function returns.) The window
    procedure of the new window receives
    this message after the window is
    created, but before the window becomes
    visible.

    Return Value:

    If an application processes this
    message, it should return zero to
    continue creation of the window. If
    the application returns –1, the window
    is destroyed and the CreateWindowEx or
    CreateWindow function returns a NULL
    handle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE 3: I created a Visual Studio 2008 test project and tried to create
Im using jQuery to create button that will show Photos with absolute position. However,
I tried to create a right bar button, but the action doesn't get triggered
I got these four errors when I tried to create a button on the
I tried to create this by following the video at http://www.asp.net/learn/videos/video-7026.aspx where Joe Stagner
I tried to create a Style for DataGridTextColumn with the following code <Style TargetType={x:Type
Have anybody ever tried to create thumbnails/previews of MS Office files? I do not
when I tried to create a shared library file using the cl command in
This is the first Python script I've tried to create. I'm reading a xml
I am very, very new to MYSQL.I tried to create a table named option.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.