CCheckListBox::OnGetCheckPosition

°¡»ó CRect OnGetCheckPosition (CRect rectItem, CRect rectCheckBox );

¹Ýȯ °ª

À§Ä¡¿Í Å©±â´Â Ç׸ñÀÇ Ã¼Å© ¹Ú½º¡£

¸Å°³ º¯¼ö

rectItem

¸ñ·Ï Ç׸ñÀÇ Å©±â ¹× À§Ä¡¡£

rectCheckBox

±âº» À§Ä¡¿Í Ç׸ñÀÇ È®ÀζõÀÇ Å©±â¡£

ÁÖÀÇ

Ç׸ñÀÇ À§Ä¡¿Í È®ÀζõÀÇ Å©±â¸¦ÀÌ ÇÔ¼ö¸¦ È£Ãâ ÇÏ´Â ÇÁ·¹ÀÓ ¿öÅ©¡£

¸¸ ±âº» ±¸Çö¿¡´Â ±âº» À§Ä¡¿Í üũ ¹Ú½º (rectCheckBox)ÀÇ Å©±â¸¦ ¹ÝȯÇÕ´Ï´Ù. ±âº»ÀûÀ¸·Î üũ ¹Ú½º Ç׸ñÀÇ ¿ÞÂÊ À§ ¸ð¼­¸®¿¡ Á¤·Ä ÇÏ °í Ç¥ÁØ È®Àζõ Å©±âÀÔ´Ï´Ù. ¿À¸¥ÂÊÀÇ È®ÀζõÀ» ¿øÇÏ´Â Çϰųª Å©°Ô ¶Ç´Â ÀÛ°Ô Ã¼Å© »óÀÚ ÀÖ´Â °æ¿ì ÀÖÀ» ¼ö ÀÖ½À´Ï´Ù. ÀÌ·¯ÇÑ °æ¿ì ÀçÁ¤ÀÇ È®Àζõ À§Ä¡¿Í Ç׸ñ ³»¿¡¼­ Å©±â¸¦ º¯°æ ÇÏ·Á¸é OnGetCheckPosition¡£

¿¹¸¦ µé¾î, ´ÙÀ½ ÇÔ¼ö ±âº»°ªÀ» ¹«½Ã ÇÏ °í Ç׸ñÀÇ ¿À¸¥ÂÊ¿¡ ÀÖ´Â È®ÀζõÀ» ³ù ¾î ¿ä, ±×°Í (¸¶À̳ʽº Çȼ¿ ¿ÀÇÁ¼ÂÀ» À§ÂÊ ¹× ¾Æ·¡ÂÊ¿¡), Ç׸ñÀÇ ³ôÀ̰¡ °í Ç¥ÁØ È®Àζõ Æø:

CRect CMyCheckListBox::OnGetCheckPosition(CRect rectItem, CRect rectCheckBox)
{
 nbsp; CRect rectMyCheckBox;
 ? rectMyCheckBox.top = rectItem.top-1;
 ? rectMyCheckBox.bottom = rectItem.bottom-1;
 ? rectMyCheckBox.right = rectItem.right-1;
 ? rectMyCheckBox.left-1-rectItem.right = rectCheckBox.Width();
 ? ¹Ýȯ rectMyCheckBox;
}(&N)

CCheckListBox °³¿ä |nbsp; Ŭ·¡½º ¸â¹ö (ko) | °èÃþ ±¸Á¶ Â÷Æ®(&N)

Âü°í Ç׸ñnbsp;CCheckListBox::SetCheck, CCheckListBox::SetCheckStyle, CCheckListBox::GetCheck, CCheckListBox::GetCheckStyle(&N)

Index