www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/28/22:48:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <00f001c3cdbe$8a935ea0$6601a8c0@MYKEPCGW>
From: "Myke Predko" <myke AT passport DOT ca>
To: <cygwin AT cygwin DOT com>
References: <019e01c3cd11$febfb2e0$6601a8c0 AT MYKEPCGW> <Pine DOT GSO DOT 4 DOT 56 DOT 0312280415020 DOT 18706 AT slinky DOT cs DOT nyu DOT edu>
Subject: Re: Windres Problem with ComboBox/tabbing? - Fixed/MinGW Problem
Date: Sun, 28 Dec 2003 22:47:54 -0500
MIME-Version: 1.0
X-Authentication-Info: Submitted using SMTP AUTH LOGIN at fep01-mail.bloor.is.net.cable.rogers.com from [24.156.204.171] using ID <mpredk2559 AT rogers DOT com> at Sun, 28 Dec 2003 22:45:57 -0500
X-IsSubscribed: yes

Thanx Igor for the pointer, I joined the list and got my answers.

For anybody that cares, or runs into the same problems:

1.  The combobox control's "height" parameter is the height <i>with the
dropdown active</i> of the control, not its height with the dropdown hidden.
This doesn't seem to be well explained in either Microsoft or other people's
documentation.

2.  The tabbing problem is a bit more subtle and if you are running with
MinGW as I am, you are going to have it UNLESS your
GetMessage/Translate/Dispatch loop at the end of "WinMain" is:

while (GetMessage(&Msg,NULL,0,0)){
    if ((!IsWindow(hwnd)) || (!IsDialogMessage(hwnd,&Msg))){
        TranslateMessage(&Msg);
        DispatchMessage(&Msg);
    }
}

The "IsDialogMessage" function determines if a message is for the current
dialog box and processes it, if it is.

This doesn't seem to be documented anywhere, except with a key accelerator
is used in the application code.

myke



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019