Click here to Skip to main content
15,912,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Hello ,Everbody! Pin
Hamid_RT12-Apr-07 2:42
Hamid_RT12-Apr-07 2:42 
AnswerRe: Hello ,Everbody! Pin
rp_suman12-Apr-07 3:41
rp_suman12-Apr-07 3:41 
QuestionRe: Hello ,Everbody! Pin
Hamid_RT19-Apr-07 8:00
Hamid_RT19-Apr-07 8:00 
AnswerRe: answer to WhiteSky Pin
Max.Payne19-Apr-07 22:10
Max.Payne19-Apr-07 22:10 
GeneralRe: answer to WhiteSky Pin
Hamid_RT20-Apr-07 20:11
Hamid_RT20-Apr-07 20:11 
GeneralRe: answer to WhiteSky Pin
Max.Payne20-Apr-07 20:35
Max.Payne20-Apr-07 20:35 
GeneralRe: answer to WhiteSky Pin
Hamid_RT21-Apr-07 5:54
Hamid_RT21-Apr-07 5:54 
QuestionOwner drawn List box...problem in setting item height. Pin
Sameer_Thakur12-Apr-07 0:15
Sameer_Thakur12-Apr-07 0:15 
Hi all.

In an owner drawn list box, when I try to set the item height by ...

--------------------------------------------------------------------
void CListBoxEx::MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)
{
lpMeasureItemStruct->itemHeight = m_nHeight;
}
--------------------------------------------------------------------
I have defined m_nHeight as a class memner and its of an int type. I am setting its value with the help of another function...
SetItemHeight(int nVal).

When I pass the values for m_nHeight to be greater than 255, then the values got truncated...

Eg.
1. When I passed 300, the item height was set to 300-256 = 49.
2. When I passed 400, the item height was set to 400-256 = 149.

etc.

I have taken care to set the proper data types for m_nHeight, and data type of lpMeasureItemStruct->itemHeight is UINT. Then what could be the reason behind this value truncation?


Thanks


Sameer Thakur

AnswerRe: Owner drawn List box...problem in setting item height. Pin
CPallini12-Apr-07 20:59
mveCPallini12-Apr-07 20:59 
GeneralRe: Owner drawn List box...problem in setting item height. Pin
Vobulator21-Jul-10 4:23
Vobulator21-Jul-10 4:23 
QuestionRegistry editor Pin
prathuraj12-Apr-07 0:16
prathuraj12-Apr-07 0:16 
AnswerRe: Registry editor Pin
Rajesh R Subramanian12-Apr-07 1:53
professionalRajesh R Subramanian12-Apr-07 1:53 
AnswerRe: Registry editor Pin
Roger Stoltz12-Apr-07 2:29
Roger Stoltz12-Apr-07 2:29 
AnswerRe: Registry editor Pin
Hamid_RT19-Apr-07 21:56
Hamid_RT19-Apr-07 21:56 
QuestionProblem with Mnemonics of a Group box Pin
sw@thi12-Apr-07 0:14
sw@thi12-Apr-07 0:14 
QuestionProblem in running Window service Pin
ArunkumarSundaravelu11-Apr-07 23:43
ArunkumarSundaravelu11-Apr-07 23:43 
AnswerRe: Problem in running Window service Pin
bob1697212-Apr-07 5:40
bob1697212-Apr-07 5:40 
QuestionMemory Leak Pin
Rassul Yunussov11-Apr-07 23:30
Rassul Yunussov11-Apr-07 23:30 
QuestionRe: Memory Leak Pin
Mark Salsbery12-Apr-07 7:50
Mark Salsbery12-Apr-07 7:50 
AnswerRe: Memory Leak Pin
Rassul Yunussov12-Apr-07 22:43
Rassul Yunussov12-Apr-07 22:43 
GeneralRe: Memory Leak Pin
Mark Salsbery13-Apr-07 7:23
Mark Salsbery13-Apr-07 7:23 
GeneralRe: Memory Leak Pin
Rassul Yunussov15-Apr-07 18:33
Rassul Yunussov15-Apr-07 18:33 
QuestionKEYEVENTF_UNICODE macro Pin
Syamlal S Nair11-Apr-07 23:20
Syamlal S Nair11-Apr-07 23:20 
AnswerRe: KEYEVENTF_UNICODE macro Pin
Gospodin Baron12-Apr-07 3:19
Gospodin Baron12-Apr-07 3:19 
GeneralRe: KEYEVENTF_UNICODE macro Pin
Syamlal S Nair16-Apr-07 22:47
Syamlal S Nair16-Apr-07 22: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.