Click here to Skip to main content
15,917,321 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOPENGL COLOR Problem Pin
sdfdsfa23-Jul-03 16:29
sdfdsfa23-Jul-03 16:29 
GeneralRe: OPENGL COLOR Problem Pin
Alexander M.,24-Jul-03 3:03
Alexander M.,24-Jul-03 3:03 
GeneralRe: OPENGL COLOR Problem Pin
sdfdsfa24-Jul-03 10:17
sdfdsfa24-Jul-03 10:17 
Questionprotect com dll? Pin
novachen23-Jul-03 14:35
novachen23-Jul-03 14:35 
AnswerRe: protect com dll? Pin
Toni7823-Jul-03 15:42
Toni7823-Jul-03 15:42 
Generalmsvcp60.dll dependency Pin
paulb23-Jul-03 13:42
paulb23-Jul-03 13:42 
GeneralRe: msvcp60.dll dependency Pin
Toni7823-Jul-03 14:38
Toni7823-Jul-03 14:38 
Generalproblem retrieving data from list box Pin
Deepak Samuel23-Jul-03 13:33
Deepak Samuel23-Jul-03 13:33 
Halo,
I still have some problems retrieving the selected data from a list box,
I showed my earlier code which was wrong, and got some ideas from a friend from this site and as suggested by him I used the function LB_GetItemdata.

Here is the code


void Cdlg4Dlg::OnDone()
{
HWND w=GetDlgItem(???? ,IDC_LISTBOX1);

LPARAM j=SendMessage(w,LB_GETITEMDATA,0);

}

so the GetdlgItem returns a handle to the list box, but i dont know what to be put for the first parameter (????).The MSDN site says that it is the handle to the dialog box containing the list box, how do i get it..can i put the id of the dialog box?? )like IDD_DIALOG1..

and another doubt..Will 'j' be the data which is selected in the list box or will that be a differént one..if thats not going to be the data selected , then how can i get the data (a number in my case) selected from list box be stored in a local variable?

some example codes will be helpful..
My question might be too stupid, please excuse since I am beginner..

Thanks,

Deepak Samuel
GeneralRe: problem retrieving data from list box Pin
Ryan Binns23-Jul-03 15:55
Ryan Binns23-Jul-03 15:55 
GeneralRe: problem retrieving data from list box Pin
Deepak Samuel23-Jul-03 23:56
Deepak Samuel23-Jul-03 23:56 
GeneralRe: problem retrieving data from list box Pin
Ryan Binns24-Jul-03 2:10
Ryan Binns24-Jul-03 2:10 
GeneralLoading text into a browser control Pin
HP723-Jul-03 13:14
HP723-Jul-03 13:14 
GeneralIs it possible to use Manifest file in VC6 Pin
Valera24117623-Jul-03 10:07
Valera24117623-Jul-03 10:07 
GeneralRe: Is it possible to use Manifest file in VC6 Pin
AlexO23-Jul-03 10:43
AlexO23-Jul-03 10:43 
GeneralRe: Is it possible to use Manifest file in VC6 Pin
Debs24-Jul-03 0:25
Debs24-Jul-03 0:25 
GeneralCreating un-fragmented files Pin
od@ananzi.co.za23-Jul-03 9:02
od@ananzi.co.za23-Jul-03 9:02 
GeneralRe: Creating un-fragmented files Pin
QuiJohn23-Jul-03 9:14
QuiJohn23-Jul-03 9:14 
GeneralRe: Creating un-fragmented files Pin
AlexO23-Jul-03 9:15
AlexO23-Jul-03 9:15 
GeneralRe: Creating un-fragmented files Pin
David Crow23-Jul-03 9:15
David Crow23-Jul-03 9:15 
GeneralRe: Creating un-fragmented files Pin
John M. Drescher23-Jul-03 9:16
John M. Drescher23-Jul-03 9:16 
GeneralRe: Creating un-fragmented files Pin
Bob Stanneveld23-Jul-03 12:38
Bob Stanneveld23-Jul-03 12:38 
GeneralRe: Creating un-fragmented files Pin
Ryan Binns23-Jul-03 16:06
Ryan Binns23-Jul-03 16:06 
GeneralRe: Creating un-fragmented files Pin
Anders Molin23-Jul-03 13:41
professionalAnders Molin23-Jul-03 13:41 
GeneralRe: Creating un-fragmented files Pin
FlyingDancer23-Jul-03 15:04
FlyingDancer23-Jul-03 15:04 
GeneralRe: Creating un-fragmented files Pin
Ryan Binns23-Jul-03 16:05
Ryan Binns23-Jul-03 16:05 

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.