Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Remove Features/components from Windows 7 Pin
Maximilien23-Sep-10 0:51
Maximilien23-Sep-10 0:51 
GeneralRe: Remove Features/components from Windows 7 Pin
Aabid23-Sep-10 1:04
Aabid23-Sep-10 1:04 
QuestionView Pin
john563222-Sep-10 21:52
john563222-Sep-10 21:52 
AnswerRe: View [modified] Pin
mesajflaviu22-Sep-10 22:15
mesajflaviu22-Sep-10 22:15 
QuestionDrawing Pin
Benjamin Bruno22-Sep-10 7:29
Benjamin Bruno22-Sep-10 7:29 
QuestionRe: Drawing Pin
David Crow22-Sep-10 8:06
David Crow22-Sep-10 8:06 
AnswerRe: Drawing Pin
sharp prospector23-Sep-10 4:14
sharp prospector23-Sep-10 4:14 
QuestionCListCtrl Border Pin
john563222-Sep-10 6:50
john563222-Sep-10 6:50 
Hi,

I have created a CListControl, I want to draw grey border color around it so I write the below code to draw border but all string are not visible.
How to do that?

void CListCtrl::OnPaint()
{
	
	CPaintDC dc(this); // device context for painting
	//CListCtrl::OnPaint();
	// TODO: Add your message handler code here
	// Do not call CListCtrl::OnPaint() for painting messages
	CRect rect;
	GetClientRect(rect);
	CPen pen(PS_SOLID,1,RGB(211,211,211));
	CBrush* pOldBrush = (CBrush*)dc.SelectStockObject( NULL_BRUSH );
	dc.SelectObject(&pen);
	//dc.SetROP2(R2_NOT   );

		dc.Rectangle(&rect);
	pOldBrush->DeleteObject();
	pen.DeleteObject();

	}

AnswerRe: CListCtrl Border Pin
Maximilien22-Sep-10 8:46
Maximilien22-Sep-10 8:46 
GeneralRe: CListCtrl Border Pin
john563222-Sep-10 22:42
john563222-Sep-10 22:42 
AnswerRe: CListCtrl Border Pin
Rolf Kristensen23-Sep-10 0:49
Rolf Kristensen23-Sep-10 0:49 
GeneralRe: CListCtrl Border Pin
john563223-Sep-10 4:17
john563223-Sep-10 4:17 
QuestionReason for UAC prompt , porting for Win7 Pin
Moak22-Sep-10 6:14
Moak22-Sep-10 6:14 
AnswerRe: Reason for UAC prompt , porting for Win7 Pin
Eugen Podsypalnikov22-Sep-10 6:33
Eugen Podsypalnikov22-Sep-10 6:33 
GeneralRe: Reason for UAC prompt , porting for Win7 Pin
Moak22-Sep-10 6:38
Moak22-Sep-10 6:38 
GeneralRe: Reason for UAC prompt , porting for Win7 Pin
Eugen Podsypalnikov22-Sep-10 6:57
Eugen Podsypalnikov22-Sep-10 6:57 
GeneralRe: Reason for UAC prompt , porting for Win7 Pin
Moak23-Sep-10 5:49
Moak23-Sep-10 5:49 
AnswerRe: Reason for UAC prompt , porting for Win7 Pin
krmed22-Sep-10 7:05
krmed22-Sep-10 7:05 
GeneralRe: Reason for UAC prompt , porting for Win7 Pin
Moak22-Sep-10 12:58
Moak22-Sep-10 12:58 
QuestionCreate a new menu in the MDI appliaction [modified] Pin
VulcanYang22-Sep-10 0:14
VulcanYang22-Sep-10 0:14 
AnswerRe: Create a new menu in the MDI appliaction Pin
Sauro Viti22-Sep-10 0:19
professionalSauro Viti22-Sep-10 0:19 
AnswerRe: Create a new menu in the MDI appliaction Pin
tayyebe5-Oct-10 1:31
tayyebe5-Oct-10 1:31 
GeneralRe: Create a new menu in the MDI appliaction Pin
VulcanYang5-Oct-10 3:02
VulcanYang5-Oct-10 3:02 
QuestionTime Format Pin
john563222-Sep-10 0:14
john563222-Sep-10 0:14 
AnswerRe: Time Format Pin
Shivanand Gupta22-Sep-10 0:36
Shivanand Gupta22-Sep-10 0:36 

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.