Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert to double value Pin
Anand Todkar22-Oct-07 20:57
Anand Todkar22-Oct-07 20:57 
GeneralRe: Convert to double value Pin
ashishbhatt22-Oct-07 21:16
ashishbhatt22-Oct-07 21:16 
GeneralRe: Convert to double value Pin
Anand Todkar22-Oct-07 21:28
Anand Todkar22-Oct-07 21:28 
GeneralRe: Convert to double value Pin
Cedric Moonen22-Oct-07 21:02
Cedric Moonen22-Oct-07 21:02 
QuestionRe: Convert to double value Pin
Nishad S22-Oct-07 21:02
Nishad S22-Oct-07 21:02 
AnswerRe: Convert to double value Pin
codeII22-Oct-07 21:25
codeII22-Oct-07 21:25 
AnswerRe: Convert to double value Pin
chandu00423-Oct-07 0:17
chandu00423-Oct-07 0:17 
QuestionMaking a particular item of listview bold Pin
jyothi lakshmi22-Oct-07 19:46
jyothi lakshmi22-Oct-07 19:46 
I want to make a particular item in listview bold after it is inserted, based on specific condition.
Below is the code that i am trying. But its not working. Can someone suggest me a way to do it

HFONT hDlgFont = (HFONT)SendMessage(get_Dialog(), WM_GETFONT, 0, 0L);
            if (NULL != hDlgFont) 
            {
                LOGFONT lFont;
                if (GetObject(hDlgFont, sizeof(LOGFONT), (LPSTR)&lFont)) 
                {
                    lFont.lfWeight = FW_BOLD;
                    hBoldFont = CreateFontIndirect(&lFont);
                }
            }

HWND hList;
LVITEM item;
//set attributes of item
ListView_InsertItem(hList, &item);

if (<condition>)
    SendMessage(GetDlgItem(hList,item.iItem), WM_SETFONT, (WPARAM)hBoldFont, 0L);

AnswerRe: Making a particular item of listview bold Pin
Nishad S22-Oct-07 20:07
Nishad S22-Oct-07 20:07 
AnswerRe: Making a particular item of listview bold Pin
Naveen22-Oct-07 20:08
Naveen22-Oct-07 20:08 
AnswerRe: Making a particular item of listview bold Pin
Hamid_RT22-Oct-07 20:40
Hamid_RT22-Oct-07 20:40 
QuestionAm I in a UI thread? Pin
Peter Weyzen22-Oct-07 19:32
Peter Weyzen22-Oct-07 19:32 
AnswerRe: Am I in a UI thread? Pin
Naveen22-Oct-07 19:35
Naveen22-Oct-07 19:35 
GeneralRe: Am I in a UI thread? Pin
James R. Twine23-Oct-07 1:51
James R. Twine23-Oct-07 1:51 
GeneralRe: Am I in a UI thread? Pin
Naveen23-Oct-07 3:00
Naveen23-Oct-07 3:00 
QuestionRe: Am I in a UI thread? Pin
David Crow23-Oct-07 3:45
David Crow23-Oct-07 3:45 
AnswerRe: Am I in a UI thread? Pin
Naveen23-Oct-07 5:22
Naveen23-Oct-07 5:22 
GeneralRe: Am I in a UI thread? Pin
David Crow23-Oct-07 5:27
David Crow23-Oct-07 5:27 
GeneralRe: Am I in a UI thread? Pin
Naveen23-Oct-07 14:12
Naveen23-Oct-07 14:12 
GeneralRe: Am I in a UI thread? Pin
Peter Weyzen23-Oct-07 11:41
Peter Weyzen23-Oct-07 11:41 
AnswerRe: Am I in a UI thread? Pin
ThatsAlok23-Oct-07 0:19
ThatsAlok23-Oct-07 0:19 
GeneralRe: Am I in a UI thread? Pin
Peter Weyzen23-Oct-07 11:43
Peter Weyzen23-Oct-07 11:43 
AnswerRe: Am I in a UI thread? Pin
Mark Salsbery23-Oct-07 8:46
Mark Salsbery23-Oct-07 8:46 
QuestionCreating a new table in access Pin
prithaa22-Oct-07 19:25
prithaa22-Oct-07 19:25 
AnswerRe: Creating a new table in access Pin
David Crow23-Oct-07 3:47
David Crow23-Oct-07 3:47 

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.