c++ - Make a window Static as well as allow adding text using CreateWIndowEx() -


I am using the CreateWindowEx () function to create an "edit" window, that is where the user can type .

g_hwndMain = CreateWindowEx (0, WC_TEXT, Faucet,
WS_VISIBLE | WS_BORDER | ES_AUTOHSCROLL, 0, 0, 400, 200,
phwnd, NULL, g_hInstance, NULL );

But I would prefer to have the window stabilized. Is there a way to do this during the construction of the window? Or any other function can be used after the window is created? I tried to use the SetWindowPos function after creating the window using SWP_NOSENDCHANGING and SWP_NOREPOSITION, but did not move it. Any ideas?


No, I mean the fixed window. Actually, I should accept the text made in the window and at the same time remain fixed.

You need to handle the message for that window and then SWP_NOMOVE Set the flag to the WINDOWPOS structure before forwarding it with it.

This is an example (though it is stopping resizing, the technique is similar).


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -