Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mcsun!hp4nl!alchemy!prisma!dick From: dick@prisma.cv.ruu.nl (Dick Bakker) Newsgroups: comp.windows.ms Subject: buttons in the main window Message-ID: Date: 18 Mar 91 21:43:57 GMT Distribution: comp.windows.ms Organization: University of Utrecht, 3D Computer Vision, The Netherlands Lines: 25 Hello, I'm writing an application that looks like the paintbrush program from Microsoft: a main window with a drawing area and some buttons/ controls on each side of this area. My problem is: I want to have some controls : buttons/listboxes etc in my main window that can directly be selected by the user. I used a modeless dialog box that I positioned next to my drawing area but this is highlighted every time you switch from the graphics area to the dialog box. My questions are: -1- Can I place a button/list box inside my main window (e.g. with the CreateWindow call) -2- Can I define these controls in a resource or must they be declared in the program itself. -3- Is there a way to bypass the highlighting with my modeless dialog box inside the main window. Thanks in advance, Dick Bakker