Advertisement

How to position win32 controls

Started by February 16, 2000 07:10 PM
4 comments, last by fungame 24 years, 10 months ago
I need help with a problem. I am new to Win 32 controls etc, and I am having a really hard time positioning control in normal windows. Are there any programs, or aids that you can use (either for the API or for MFC, or just to get a rect) just to position this stuff? Thanks!
If u are using Visual C++, use the resouce editor. Tis the easiest for position controls. Bad thing is, you need to install MFC.
Advertisement
Even for normal windows (only see dialog). BTW, I am using VC++ 6 and have MFC installed
]? (or am I exctracting the coords from there?)
Some people say they do coding in MS VC++ and interface in VB. This seems like a good idea to me, but how do they do that? Anyone got an idea?

Daniel Netz, Sentinel Design
============================Daniel Netz, Sentinel Design"I'm not stupid, I'm from Sweden" - Unknown
The resource editor for VC++ is just as good I think.
William Reiach - Human Extrodinaire

Marlene and Me


fungame -

If you are trying to position controls that you have created dynamically you will need to convert some screen coordinates to client coordinates ( see ScreenToClient(..) and GetClientWindow(..) ).

Spiff -

VB is a great tool for developing rich UI''s. For a variety of reasons, its sometimes benefical to write the "business logic" code in C++ for use in VB.

VB supports two methods of including C++ code:

1) regular Windows DLL
2) ActiveX/COM ( VB 6.0 supports early and late binding )

HTH,

-mordell

__________________________________________

Yeah, sure... we are laughing WITH you ...

This topic is closed to new replies.

Advertisement