Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to access the Methods from a DLL Pin
ganapathykumar3-Feb-05 9:01
ganapathykumar3-Feb-05 9:01 
AnswerRe: How to access the Methods from a DLL Pin
geo_m3-Feb-05 9:53
geo_m3-Feb-05 9:53 
GeneralRe: How to access the Methods from a DLL Pin
ganapathykumar3-Feb-05 9:59
ganapathykumar3-Feb-05 9:59 
GeneralRe: How to access the Methods from a DLL Pin
geo_m3-Feb-05 19:15
geo_m3-Feb-05 19:15 
GeneralRe: How to access the Methods from a DLL Pin
RChin3-Feb-05 23:39
RChin3-Feb-05 23:39 
GeneralGetting text from a Listbox Pin
Anonymous3-Feb-05 8:50
Anonymous3-Feb-05 8:50 
GeneralRe: Getting text from a Listbox Pin
Ravi Bhavnani3-Feb-05 9:14
professionalRavi Bhavnani3-Feb-05 9:14 
GeneralRe: Getting text from a Listbox Pin
Neville Franks3-Feb-05 9:24
Neville Franks3-Feb-05 9:24 
As Ravi said.Rose | [Rose] Here is a small example:


/** Get the current selection for the spec'd listbox control.
 *
 *  @param hCtrl_Source Listbox hWnd.
 *  @param szItem returned text.
 *  @param nItemLen size of szItem.
 *
 *  @return list box selection index.
 */
int
GetListboxSel( HWND hCtrl_Source, char* szItem, const int nItemLen )
{
    const int nIndex = (int)::SendMessage( hCtrl_Source, LB_GETCURSEL, 0, 0L );
    if ( nIndex != -1 )   // if list has a selection
    {
        const int nLen = (int)::SendMessage( hCtrl_Source, LB_GETTEXTLEN, nIndex, 0L );
        if ( nLen < nItemlen )
            ::SendMessage( hCtrl_Source, LB_GETTEXT, nIndex, (LPARAM)szItem );
        else
            *szItem = '\0';  // init any crap from callers param
    }
    else
        *szItem = '\0';  // if no selection return empty string
    return nIndex;
}


Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
GeneralRe: Getting text from a Listbox Pin
toxcct3-Feb-05 17:18
toxcct3-Feb-05 17:18 
GeneralActiveX on Dialog, and keyboard handling Pin
peterchen3-Feb-05 8:23
peterchen3-Feb-05 8:23 
Generaldialog based application button press events Pin
Member 4115223-Feb-05 7:34
Member 4115223-Feb-05 7:34 
GeneralRemove maximize option from word document Pin
Anonymous3-Feb-05 6:32
Anonymous3-Feb-05 6:32 
GeneralRe: Remove maximize option from word document Pin
ThatsAlok5-Feb-05 0:09
ThatsAlok5-Feb-05 0:09 
GeneralUn-Selectable Window Pin
G.O.3-Feb-05 6:16
G.O.3-Feb-05 6:16 
GeneralRe: Un-Selectable Window Pin
Blake Miller3-Feb-05 7:07
Blake Miller3-Feb-05 7:07 
GeneralAnother Process Window Pin
Member 17059883-Feb-05 6:13
Member 17059883-Feb-05 6:13 
GeneralRe: Another Process Window Pin
David Crow3-Feb-05 9:29
David Crow3-Feb-05 9:29 
Generalgetting file associated icon location Pin
pnpfriend3-Feb-05 5:50
pnpfriend3-Feb-05 5:50 
GeneralRe: getting file associated icon location Pin
Ravi Bhavnani3-Feb-05 7:44
professionalRavi Bhavnani3-Feb-05 7:44 
GeneralRe: getting file associated icon location Pin
Blake Miller3-Feb-05 7:01
Blake Miller3-Feb-05 7:01 
GeneralDestroying the desktop Pin
Vaibhav Sanghavi3-Feb-05 5:25
Vaibhav Sanghavi3-Feb-05 5:25 
GeneralRe: Destroying the desktop Pin
David Crow3-Feb-05 5:41
David Crow3-Feb-05 5:41 
GeneralRe: Destroying the desktop Pin
Vaibhav Sanghavi3-Feb-05 17:51
Vaibhav Sanghavi3-Feb-05 17:51 
GeneralRe: Destroying the desktop Pin
Antti Keskinen3-Feb-05 23:25
Antti Keskinen3-Feb-05 23:25 
Generalcan't use exported func in a namespace Pin
happycpp3-Feb-05 5:03
happycpp3-Feb-05 5:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.