Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrollable subwindow

Status
Not open for further replies.

mingis

Programmer
Jan 23, 2002
475
LT
What Windows SDK calls should I look for - I want to make a subwindow control with scroll bars. That subwindow shoud contain edit controls, comboboxes etc. and be logically bigger than the control on the parrent window - scrollbars should be used to scroll to hidden parts of that window. Actually I want to make what a subform control in MS Access form is. Or may be MS Excel document in maximized state without possibility to minimize. I don't want MFC. Should I use MDI (multiple Document Interface) technique?

What is wrong with the call:
Code:
frame_control=CreateWindowEx(0, "MDICLIENT", "KpFrame",
                  WS_VISIBLE|WS_CHILD,
                  iPosX, iPosY, iWdtX, iWdtY, hParent, 0, 
                  GetModuleHandle(NULL), 0);
It returns a zero result. hParent is handle of existing window, coordinates are inside of that window.
Are here some additional style flags missing?

Thank you.
 
I got explanation of the error on executing of CreateWindowEx(0, "MDICLIENT", ...):
"This function is only valid in Win32 mode", error code 120 ERROR_CALL_NOT_IMPLEMENTED.
What could it mean? The application is created as simply Win32 project, it starts through WinMain().
 
Got something - pointer to CLIENTCREATESTRUCT as last parameter of CreateWindowEx(0, "MDICLIENT", ..., (LPVOID)&ccs) missed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top