Click here to Skip to main content
16,014,952 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple Poygons(>2) union Pin
Shunya29-Jun-10 23:32
Shunya29-Jun-10 23:32 
GeneralRe: Simple Poygons(>2) union Pin
Code-o-mat30-Jun-10 0:37
Code-o-mat30-Jun-10 0:37 
GeneralRe: Simple Poygons(>2) union Pin
Shunya30-Jun-10 1:17
Shunya30-Jun-10 1:17 
GeneralRe: Simple Poygons(>2) union Pin
Code-o-mat30-Jun-10 1:22
Code-o-mat30-Jun-10 1:22 
GeneralRe: Simple Poygons(>2) union Pin
Shunya30-Jun-10 1:39
Shunya30-Jun-10 1:39 
GeneralRe: Simple Poygons(>2) union Pin
Code-o-mat30-Jun-10 2:12
Code-o-mat30-Jun-10 2:12 
GeneralRe: Simple Poygons(>2) union Pin
Shunya30-Jun-10 2:53
Shunya30-Jun-10 2:53 
QuestionControl move from original position Pin
MsmVc29-Jun-10 0:58
MsmVc29-Jun-10 0:58 
Hi All

I am facing very fracturing problem.My application some control move from original position and some control hide.i use Static,Edit Box,List Box,List Control,Picture control and Spin Control.

I use OnEraseBkgnd and OnCtlColor function for background color and control color.Code is here

HBRUSH CTestDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

	if((pWnd->GetDlgCtrlID() == IDC_CHECK_REAL) || (pWnd->GetDlgCtrlID() == IDC_STATIC_REAL))
	{
		hbr = CreateSolidBrush(RGB(250, 252 , 254));
		pDC->SetBkColor(RGB(250,252,254));
		pDC->SetTextColor(RGB(0,0,0));
		pDC->SetBkMode(OPAQUE);
	
	}
	if((pWnd->GetDlgCtrlID() == IDC_EDIT_MAXPATH))
	{
		hbr = CreateSolidBrush(RGB(255, 255 ,255));
		pDC->SetBkColor(RGB(255, 255 , 255));
		pDC->SetTextColor(RGB(0,0,0));
		pDC->SetBkMode(OPAQUE);
	
	}
}


BOOL CtESTDlg::OnEraseBkgnd(CDC* pDC)
{

	CRect rect;
	GetClientRect(&rect);	
	pDC->FillSolidRect(rect,RGB(250,252,254));	
	return TRUE;


}

QuestionHow to set the value in ComboBox Pin
raju_shiva29-Jun-10 0:55
raju_shiva29-Jun-10 0:55 
AnswerRe: How to set the value in ComboBox Pin
MsmVc29-Jun-10 1:03
MsmVc29-Jun-10 1:03 
Questionproblem with image scaning & displaing . win32 StretchDIBits () Pin
ashish8patil29-Jun-10 0:25
ashish8patil29-Jun-10 0:25 
QuestionOwnerdarw Combobox Pin
AbhiHcl28-Jun-10 23:33
AbhiHcl28-Jun-10 23:33 
AnswerRe: Ownerdarw Combobox Pin
Nibu babu thomas28-Jun-10 23:41
Nibu babu thomas28-Jun-10 23:41 
GeneralRe: Ownerdarw Combobox Pin
AbhiHcl28-Jun-10 23:47
AbhiHcl28-Jun-10 23:47 
GeneralRe: Ownerdarw Combobox Pin
Nibu babu thomas28-Jun-10 23:48
Nibu babu thomas28-Jun-10 23:48 
GeneralRe: Ownerdarw Combobox Pin
AbhiHcl28-Jun-10 23:54
AbhiHcl28-Jun-10 23:54 
GeneralRe: Ownerdarw Combobox Pin
Aescleal28-Jun-10 23:59
Aescleal28-Jun-10 23:59 
GeneralRe: Ownerdarw Combobox Pin
Nibu babu thomas29-Jun-10 2:01
Nibu babu thomas29-Jun-10 2:01 
AnswerRe: Ownerdarw Combobox Pin
Aescleal28-Jun-10 23:58
Aescleal28-Jun-10 23:58 
Questionswap different sized string Pin
rupeshkp72828-Jun-10 22:05
rupeshkp72828-Jun-10 22:05 
AnswerRe: swap different sized string Pin
Cedric Moonen28-Jun-10 22:14
Cedric Moonen28-Jun-10 22:14 
GeneralRe: swap different sized string Pin
rupeshkp72828-Jun-10 22:26
rupeshkp72828-Jun-10 22:26 
GeneralRe: swap different sized string Pin
Aescleal28-Jun-10 23:51
Aescleal28-Jun-10 23:51 
AnswerRe: swap different sized string Pin
Adam Roderick J28-Jun-10 22:14
Adam Roderick J28-Jun-10 22:14 
GeneralRe: swap different sized string Pin
rupeshkp72828-Jun-10 22:40
rupeshkp72828-Jun-10 22:40 

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.