delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/10/02:31:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <36E61F42.5659B175@hem2.passagen.se>
Date: Wed, 10 Mar 1999 08:29:06 +0100
From: Anders Norlander <anorland AT hem2 DOT passagen DOT se>
X-Mailer: Mozilla 4.01 [en] (Win95; I)
MIME-Version: 1.0
To: Nirmal Prasad <nprasad AT truept DOT com>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: DateTime Picker and MonthCal ctrl. under b20.
X-Priority: 3 (Normal)
References: <001401be6a78$1472cc00$bf6f1e26 AT np_home_pc>

Nirmal Prasad wrote:
> 
> Hi there,
> 
> I happened to notice that there was no support for the Date-Time Picker and
> Month Control under gnu-win32 b20. Well i have put in the necessary message
> constants , macros and structures into the various files but i found that
> the CommonControl library (libComCtl32.a does not have an export called
> InitCommonControlsEx.) I have a comctl32.dll that has this exported function
> but my question is how was libcomctl32.a built. ( Pls. correct me if i am
> wrong .. i was looking for something like implib).  It will be great if
> someone could tell me how i could build a new libcomctl32.a

InitCommonControlsEx and related things are new features of the win32
gui
and they are not (as you've noticed) in any headers or import libraries.
Get the .def file for comctl32.dll (comtl32.def) and add the line:
InitCommonControlsEx AT 4

To build the library execute:
dlltool -k --output-lib libcomtl32.a --dllname comctl32.dll --def
comctl32.def

You also have to add the prototype for InitCommonControlsEx to
commctrl.h
(don't forget WINAPI). Could you send me your patches?

Get the def file from the mingw32 package
http://www.fu.is.saga-u.ac.jp/~colin/gcc.html
or from the GNU Windows32 library
or from the cygwin source distribution.

Anders

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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