Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Frame control #41

Open
WillyAguilera1977 opened this issue Dec 23, 2022 · 2 comments
Open

Problem with Frame control #41

WillyAguilera1977 opened this issue Dec 23, 2022 · 2 comments

Comments

@WillyAguilera1977
Copy link

WillyAguilera1977 commented Dec 23, 2022

I have a problem with the Frame control.
When I drag a TextBox control over the Frame control,
it does not become a child of the Frame control as it should. If I drag the Frame control, the Textbox control does not move with the Frame.
Waiting for your answer.
Regards.

@PaulSquires
Copy link
Owner

That is not how Frame controls work in pure Win32 API programming. I know what you are saying though because what you describe is the way it works in environments like Visual Basic where a "Frame" control is actually a container that can encapsulate child controls and then when the Frame moves, the children move also. However, in normal Win32 API programming, a Frame control is no different than any other Window. I would have to build the parent-child relationship into WinFBE Frames because it does not come standard with the regular Windows Frame window (which is basically a STATIC class window with some special Window styles to give it the frame look).

@WillyAguilera1977
Copy link
Author

WillyAguilera1977 commented Dec 24, 2022

How about programming a GroupBox. is a container control.
A group box is a special kind of a button created with the BS_GROUPBOX style.
CreateWindowW(L"Button", L"Choose colour",
WS_CHILD | WS_VISIBLE | BS_GROUPBOX,
10, 10, 120, 110, hwnd, (HMENU) 0, g_hinst, NULL);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants