C# MFC 차이 비교 - part 1 (table) (연동에 필요한 정보)
C# MFC 차이 - A
|
MFC |
C# |
|
abs |
Math.Abs |
|
.AddString(...) |
.Items.Add(...) |
|
AfxMessageBox |
MessageBox.Show |
|
atoi |
Parse |
C# MFC 차이 - B
|
MFC |
C# |
|
BOOL 또는 bool |
Boolean 또는 bool |
|
bool |
Boolean 또는 bool |
|
bool |
BS_PUSHLIKE |
|
BYTE |
byte |
C# MFC 차이 - C
|
MFC |
C# |
|
CBitmap |
Bitmap(actually, a GDI+ bitmap) |
|
CBrush |
Brush |
|
CDC 또는 CClientDC |
Graphics |
|
ceil |
Math.Ceiling |
|
CenterWindow(CWnd) |
.StartPosition = FormStarPosition.CenterParent(도구창에서 제어) |
|
CFileDialog |
SaveFileDialog, OpenFileDialog 등을 ShowDialog |
|
CFont |
Font |
|
char |
char 또는 sbyte. 둘간의 본질적 의미는 다릅니다. C/C++의 WCHAR과 오히려 그 의미가 더 비슷합니다. |
|
CListBox::AddString(...) |
CListBox.Items.Add(...) |
|
ClistBox.GetLBText(n) |
CListBox.GetItemText(n) |
|
COLORREF |
color |
|
CPaintDC |
System.Windows.Forms.PaintEventArgs의 OnPaint |
|
CPEN |
PEN |
|
CSize |
Size(Int) 또는 SizeF(Float) |
|
CSpinCtrl (with CEdit buddy control) |
NumericUpDown |
|
CString |
String |
|
CWnd::GetClientRect() |
ClientRectangle (property) |
|
CWnd::Invalidate() |
.Invalidate() |
|
CWnd::InvalidateRect(&r) |
.Invalidate(...); |
|
CWnd::ShowWindow(SW_SHOW) |
.Visible = true; |
|
CWnd::ShowWindow(SW_HIDE); |
.Visible = false; |
|
CString.GetLength(); |
String.Length; |
C# MFC 차이 - D
|
MFC |
C# |
|
DeleteDC |
가비지 컬렉터가 처리 |
|
DestroyWindow |
Close |
|
DoModal |
.ShowDialog |
|
double |
double |
|
DrawItem (CListBox) |
DrawItem event |
|
DWORD |
uint |
C# MFC 차이 - E
|
MFC |
C# |
|
.Ellipse |
.DrawEllipse |
|
EndDialog(IDCancel) |
Close |
|
EndDialog(IDOK) |
Close |
|
exp |
Math.Exp |
C# MFC 차이 - F
|
MFC |
C# |
|
.Find (CString) |
.IndexOf (String) |
|
.Format |
see CString::Format |
C# MFC 차이 - G
|
MFC |
C# |
|
GetBValue |
.B |
|
.GetClientRect() |
.ClientRectangle (property) |
|
GetCurSel (CComboBox) |
... = ComboBox.SelectedIndex; |
|
GetDC |
Graphics |
|
GetFont |
.Font |
|
GetGValue |
.G |
|
.GetLBText(n) (CListBox) |
.GetItemText(n) |
|
.GetLBText(n) (CComboBox) |
.GetSelectedItem.ToString(); |
|
.GetLength() (CString) |
s.Length |
|
.GetMiterLimit (CDC) |
... = Pen.MiterLimit; |
|
GetModuleFileName |
System.Windows.Forms.Application.ExecutablePath |
|
GetPos (CSpinCtrl) |
NumericUpDown.Value |
|
GetRange (CSpinCtrl) |
NumericUpDown.Maximum 또는 NumericUpDown.Minimum |
|
GetRValue |
.R |
|
.GetSize() (CArray) |
s.Length |
|
GetSysColor |
Color.FromKnownColor(KnownColor.colorname) |
|
GetSystemMetrics |
System.Windows.Forms.SystemInformation |
|
GetTextExtent |
MeasureString |
|
GetTickCount |
DateTime.Now.Ticks |
|
GetUserName |
System.Environment.UserName |
|
GWL_DLGRESULT |
Closing event, DialogResult property |
C# MFC 차이 - H
|
MFC |
C# |
|
HBITMAP |
Bitmap (actually, a GDI+ bitmap) |
|
HBRUSH |
Brush |
|
HDC |
Graphics (see CDC) |
|
HPEN |
Pen |
C# MFC 차이 - I
|
MFC |
C# |
|
_I64_MAX Int64.MaxValue |
_I64_MIN Int64.MinValue |
|
int |
int |
|
__int64 |
long |
|
INT_MAX Int32.MaxValue |
INT_MIN Int32.MinValue |
|
.Invalidate() |
.Invalidate() |
|
.Invalidate() |
.Invalidate() |
|
itoa |
ToString |
C# MFC 차이 - K
|
MFC |
C# |
|
KillTimer |
도구상자에서 타이머를 추가하고 객체를 생성해 사용 |
C# MFC 차이 - L
|
MFC |
C# |
|
LineTo |
DrawLine(2쌍씩) |
|
::LoadCursor(NULL, cursorid) 또는 LoadStandardCursor(cursorid) (CWinApp) |
OnSetCursor |
|
long |
int |
|
LONG |
int |
|
LONGLONG |
long |
C# MFC 차이 - M
|
MFC |
C# |
|
MessageBox |
MessageBox.Show |
|
MoveTo |
DrawLine |
<< 다음 글로 이어집니다. >>
C# MFC 차이 비교 - part 1 (table) (연동에 필요한 정보)