Re: Combobox width

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Wapiti (wapiti_at_noplaceforspam.com)
Date: 10/18/04


Date: Mon, 18 Oct 2004 10:07:49 -0700


> have an IQ under the average NFL football score on Sunday?
You'd be surprised - but then, I think that might have been pointed at me
too.

possibly/probably rightly so.. I didn't even think of using opennetcf in
source form... my ignorance.

>
> Paul T.
>
> "Wapiti" <wapiti@noplaceforspam.com> wrote in message
> news:%23E14vJTtEHA.2800@TK2MSFTNGP10.phx.gbl...
> > Thanks guys!
> >
> > As mentioned in a previous reply, these guys are requiring the use of
> > nothing but native .net - so I can't use the OpenNETCF stuff.
> >
> > I've not used SendMessage under .net yet and have a question on
> > implementation.
> >
> > LRESULT SendMessage(
> > HWND hWnd,
> > UINT Msg,
> > WPARAM wParam,
> > LPARAM lParam
> > )
> >
> > In VB6, I would make the call to HWND using "cmb.hwnd" - what do I use
in
> > net? I looked at the source in opennetcf and saw the use of
> > "this.handle"
> > (me.handle) ... but how do you bind this to the control then?
> >
> > Yes, sorry, I'm confused.
> >
> >
> > "Peter Foot [MVP]" <feedback@no-spam.inthehand.com> wrote in message
> > news:epccapStEHA.2520@tk2msftngp13.phx.gbl...
> >> I've put together a slightly improved ComboBox control for OpenNETCF's
> > Smart
> >> Device Framework - It will be in the next release, but you can get the
> >> source at www.opennetcf.org/sourcebrowse/ - Its the ComboBoxEx in the
> >> OpenNETCF.Windows.Forms assembly.
> >> One of the features added is a DropDownWidth property which allows you
to
> >> create a narrow combobox with a wider drop down list which should
fulfil
> >> your requirement.
> >>
> >> Peter
> >>
> >> --
> >> Peter Foot
> >> Windows Embedded MVP
> >> www.inthehand.com | www.opennetcf.org
> >>
> >> Do have an opinion on the effectiveness of Microsoft Windows Mobile and
> >> Embedded newsgroups? Let us know!
> >> https://www.windowsembeddedeval.com/community/newsgroups
> >>
> >> "Wapiti" <wapiti@noplaceforspam.com> wrote in message
> >> news:OlqTRXStEHA.1336@tk2msftngp13.phx.gbl...
> >> > Tho I don't think it matters, I'm using VB.net...
> >> >
> >> > "Wapiti" <wapiti@noplaceforspam.com> wrote in message
> >> > news:%23m02sRStEHA.412@TK2MSFTNGP14.phx.gbl...
> >> >> Okay, we've tossed this one around already .. but I've finally
bumped
> >> >> into
> >> >> what I consider a viable need.
> >> >>
> >> >> In the past, someone has asked for a horizontal scrollbar on
dropdown
> >> >> lists - I still see this as viable in some situations. But, what
I'm
> >> >> looking for is a means of widening the display portion of the
dropdown
> >> >> contents -where I can keep the width of the combobox control compact
> >> >> (small), but expand the dropdown item content width when the user
> > clicks
> >> > the
> >> >> list to display those contents. No, I'm still not suggesting adding
a
> >> >> paragraph to each line item - but 4 characters is all that this
> >> >> particular
> >> >> list will display - I can format the item contents as such: "1002 -
> >> > Active",
> >> >> "1003 -Inactive", "1004 -Prosperous", etc. The users don't know
what
> >> > 1004
> >> >> is (yet), but they do know the description. The combo will display
> >> >> the
> >> > 1004
> >> >> when selected, but when its dropped down I'd like to show them the
> >> >> full
> >> >> description ("1004 -Prosperous", "1003 -Inactive", etc.).
> >> >>
> >> >> In VB6, I would accomplish this by using the api:
> >> >>
> >> >> Public Declare Function SendMessage Lib "user32" Alias
"SendMessageA"
> >> >> _
> >> >> (ByVal hwnd As Long, _
> >> >> ByVal wMsg As Long, _
> >> >> ByVal wParam As Long, _
> >> >> lParam As Any) As Long
> >> >>
> >> >> Is this available in .net cf??
> >> >>
> >> >> -m
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Relevant Pages

  • Re: C library interface
    ... HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam ...
    (comp.lang.forth)
  • Re: how to tell if hwnd is valid
    ... HWND hWnd, ... WPARAM wParam, ... LPARAM lParam ... If the function succeeds, ...
    (microsoft.public.vc.mfc)
  • rs232- [C]
    ... LRESULT CALLBACK WndProc_CW1 (HWND hwnd, UINT message, ... WPARAM wParam, LPARAM lParam) ... // A serial message occurred ...
    (microsoft.public.vc.language)
  • Re: Problem with GetTextMetrics and Unicode
    ... >> (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) ... Structure member alignment should not affect the TEXTMETRICW structure ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Make a snapshot of an htmlpage
    ... STDMETHOD(UINT itinfo, LCID lcid, ITypeInfo** pptinfo); ... LRESULT OnCreate (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& ...
    (microsoft.public.vc.atl)