Click here to Skip to main content
15,893,663 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem starting application by drag-drop file Pin
Jim_Csoft16-Mar-07 4:05
Jim_Csoft16-Mar-07 4:05 
Questionlist control Pin
Chen-XuNuo15-Mar-07 17:06
Chen-XuNuo15-Mar-07 17:06 
AnswerRe: list control Pin
Owner drawn15-Mar-07 17:42
Owner drawn15-Mar-07 17:42 
GeneralRe: list control Pin
Rajesh R Subramanian5-Aug-08 23:22
professionalRajesh R Subramanian5-Aug-08 23:22 
AnswerRe: list control Pin
harsh_296115-Mar-07 18:29
harsh_296115-Mar-07 18:29 
AnswerRe: list control Pin
Hamid_RT15-Mar-07 20:04
Hamid_RT15-Mar-07 20:04 
AnswerRe: list control Pin
ThatsAlok15-Mar-07 23:33
ThatsAlok15-Mar-07 23:33 
QuestionCRectTracker Pin
Gabor Kalman15-Mar-07 15:55
Gabor Kalman15-Mar-07 15:55 
Answerrepost Pin
toxcct15-Mar-07 23:25
toxcct15-Mar-07 23:25 
GeneralRe: repost Pin
ThatsAlok16-Mar-07 0:02
ThatsAlok16-Mar-07 0:02 
QuestionCRectTracer Pin
Gabor Kalman15-Mar-07 14:24
Gabor Kalman15-Mar-07 14:24 
QuestionPalindrome Number Pin
Lorisabel15-Mar-07 13:02
Lorisabel15-Mar-07 13:02 
AnswerRe: Palindrome Number Pin
David Crow15-Mar-07 16:41
David Crow15-Mar-07 16:41 
GeneralRe: Palindrome Number Pin
Lorisabel16-Mar-07 5:17
Lorisabel16-Mar-07 5:17 
Questionfile size display Pin
badenmaher6915-Mar-07 12:40
badenmaher6915-Mar-07 12:40 
AnswerRe: file size display Pin
toxcct15-Mar-07 12:56
toxcct15-Mar-07 12:56 
AnswerRe: file size display Pin
ThatsAlok16-Mar-07 0:03
ThatsAlok16-Mar-07 0:03 
badenmaher69 wrote:
. i need to have a file selected before it displays its size.. any help?????? cheers im going round in circles and am new to this thing

 you need to validate the Button click .. some thing like this :-
CListCtrl* pListCtrl = (CListCtrl*) GetDlgItem(IDC_YOURLISTCONTROL);
ASSERT(pListCtrl != NULL);

POSITION pos = pList->GetFirstSelectedItemPosition();
if (pos == NULL)
  // DONT DISPLAY DIalog
else
{
    // DISPLAY DIalog
}



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
Global Interface Table: An Easy Way to Marshal an Interface Pointer[new]
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You

QuestionCFormView vs. Dialog Pin
ScotDolan15-Mar-07 12:13
ScotDolan15-Mar-07 12:13 
QuestionDrawing on different types of bitmaps Pin
Jim Crafton15-Mar-07 11:27
Jim Crafton15-Mar-07 11:27 
AnswerRe: Drawing on different types of bitmaps Pin
Jim Crafton15-Mar-07 12:21
Jim Crafton15-Mar-07 12:21 
QuestionAbout Chinese characters Convert Ascii Pin
MyNothing15-Mar-07 8:05
MyNothing15-Mar-07 8:05 
AnswerRe: About Chinese characters Convert Ascii Pin
Mark Salsbery15-Mar-07 9:24
Mark Salsbery15-Mar-07 9:24 
QuestionRun exe Pin
prathuraj15-Mar-07 7:01
prathuraj15-Mar-07 7:01 
AnswerRe: Run exe Pin
David Crow15-Mar-07 7:07
David Crow15-Mar-07 7:07 
GeneralRe: Run exe Pin
prathuraj15-Mar-07 7:50
prathuraj15-Mar-07 7:50 

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.