Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Why not set a style that creates a client edge around your CListCtrl:
BEGIN_MESSAGE_MAP(CMyListCtrl, CListCtrl)
	//{{AFX_MSG_MAP(CMyListCtrl)
	ON_WM_CREATE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

void CMyListCtrl::OnCreateStyles()
{
	// Will be called twice when placed inside a CView / CFormView

	// Set slim border
	ModifyStyle(WS_BORDER, 0);
	ModifyStyleEx(WS_EX_STATICEDGE, WS_EX_CLIENTEDGE);
}

void CMyListCtrl::PreSubclassWindow()
{
	CListCtrl::PreSubclassWindow();

	OnCreateStyles();
}

int CMyListCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CListCtrl::OnCreate(lpCreateStruct) == -1)
		return -1;

	OnCreateStyles();
	return 0;
}

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 
AnswerRe: Time Format Pin
Richard MacCutchan22-Sep-10 1:44
mveRichard MacCutchan22-Sep-10 1:44 
AnswerRe: Time Format Pin
Member 392263922-Sep-10 2:08
Member 392263922-Sep-10 2:08 
GeneralRe: Time Format Pin
john563222-Sep-10 3:34
john563222-Sep-10 3:34 

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.