Alaska Software Inc. - XbPart Control ID
Username: Password:
AuthorTopic: XbPart Control ID
AUGE_OHRXbPart Control ID
on Fri, 16 Sep 2011 00:59:29 +0200
hi,

when create a "native" Common Control like this

   @User32:CreateWindowExA(0 ,;      extended styles
          "WC_LISTBOX" ,;      control 'class' name "ListBox"
          ""                          ,;      control caption
          ::dwLvStyle          ,;      wnd Style
          0,0,rc[3],rc[4]       ,;      position: left,top,width,height
          ::hXbp                  ,;      parent window handle
          4711                    ,;      control's ID
          AppInstance()     ,;      instance Ot4Xb -> GetModuleHandleA()
          0  )                                user defined info

i can define "Control ID" here 4711

   @User32:DlgDirListA(hWnd,cPath+"*.*",4711,0,DDL_DIRECTORY)

this will "fill" a Listbox with Directory of cPath+"*.*" and need "Control 
ID"

Question : how to get Xbase++ XbParts "Control ID" ?

greetings by OHR
Jimmy
Pablo BotellaRe: XbPart Control ID
on Fri, 16 Sep 2011 09:20:18 +0200
Hi,

> Question : how to get Xbase++ XbParts "Control ID" ?

nId := @user32:GetWindowLongA(oXbp:GetHWnd() , GWL_ID )

Regards,

Pablo
AUGE_OHRRe: XbPart Control ID
on Mon, 19 Sep 2011 18:15:18 +0200
hi,

> nId := @user32:GetWindowLongA(oXbp:GetHWnd() , GWL_ID )

i have test it with XbpListBox() and got 0 so i can not use DlgDirList 
function

*** quote ***
The identifier of a list box in the hDlg dialog box.
If this parameter is zero, DlgDirList does not try to fill a list box.
*** eof ***

greetings by OHR
Jimmy