本文整理匯總了C++中Edit_LimitText函數的典型用法代碼示例。如果您正苦於以下問題:C++ Edit_LimitText函數的具體用法?C++ Edit_LimitText怎麽用?C++ Edit_LimitText使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Edit_LimitText函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: ConsoleWndAllUpdate
static void ConsoleWndAllUpdate(void)
{
ConsoleWndVerbosityUpdate();
ConsoleWndValidUpdate();
Edit_LimitText(GetDlgItem(hConsoleWnd,IDC_EDIT_VERBOSITY),3);
Edit_LimitText(GetDlgItem(hConsoleWnd,IDC_EDIT),ConsoleWndMaxSize);
}
示例2: GroupDialogProc
/*
* GroupDialogProc: Dialog procedure for group dialog.
*/
BOOL CALLBACK GroupDialogProc(HWND hDlg, UINT message, UINT wParam, LONG lParam)
{
int i, index;
HWND hList, hCombo;
list_type l;
switch (message)
{
case WM_INITDIALOG:
// Add groups to list box
hCombo = GetDlgItem(hDlg, IDC_GROUPS);
SetWindowFont(hCombo, GetFont(FONT_LIST), FALSE);
for (i=0; i < num_groups; i++)
index = ComboBox_AddString(hCombo, groups[i]);
// Add logged on users to list box
hList = GetDlgItem(hDlg, IDC_LOGGEDON);
SetWindowFont(hList, GetFont(FONT_LIST), FALSE);
for (l = *(cinfo->current_users); l != NULL; l = l->next)
{
object_node *obj = (object_node *) (l->data);
ListBox_AddString(hList, LookupNameRsc(obj->name_res));
}
PostMessage(hDlg, BK_CREATED, 0, 0);
SetWindowFont(GetDlgItem(hDlg, IDC_GROUPMEMBERS), GetFont(FONT_LIST), FALSE);
SetWindowFont(GetDlgItem(hDlg, IDC_ADDNAME), GetFont(FONT_EDIT), FALSE);
SetWindowFont(GetDlgItem(hDlg, IDC_NEWGROUP), GetFont(FONT_EDIT), FALSE);
SetWindowFont(GetDlgItem(hDlg, IDC_GROUPTELL), GetFont(FONT_EDIT), FALSE);
Edit_LimitText(GetDlgItem(hDlg, IDC_NEWGROUP), MAX_GROUPNAME);
Edit_LimitText(GetDlgItem(hDlg, IDC_ADDNAME), MAX_CHARNAME);
Edit_LimitText(GetDlgItem(hDlg, IDC_GROUPTELL), MAXSAY);
if (num_groups >= MAX_NUMGROUPS)
EnableWindow(GetDlgItem(hDlg, IDC_NEWGROUP), FALSE);
hGroupDialog = hDlg;
CenterWindow(hDlg, GetParent(hDlg));
return TRUE;
case BK_CREATED:
hCombo = GetDlgItem(hDlg, IDC_GROUPS);
ComboBox_SetCurSel(hCombo, 0);
// Need this for some reason to simulate WM_COMMAND
GroupCommand(hDlg, IDC_GROUPS, hCombo, CBN_SELCHANGE);
return TRUE;
HANDLE_MSG(hDlg, WM_COMMAND, GroupCommand);
case WM_DRAWITEM: // windowsx.h macro always returns FALSE
return GroupListDrawItem(hDlg, (const DRAWITEMSTRUCT *)(lParam));
case WM_DESTROY:
hGroupDialog = NULL;
return TRUE;
}
return FALSE;
}
示例3: getDlgItem
ATMO_BOOL CDmxConfigDialog::InitDialog(WPARAM wParam) {
m_hCbxComports = getDlgItem(IDC_COMPORT);
InitDialog_ComPorts( m_hCbxComports );
int com = m_pConfig->getComport() - 1;
if(com < 0) com = 0;
ComboBox_SetCurSel(m_hCbxComports, com);
m_hCbxBaudrate = getDlgItem(IDC_BAUDRATE);
ComboBox_AddString(m_hCbxBaudrate, "115200");
ComboBox_AddString(m_hCbxBaudrate, "250000");
ComboBox_SetCurSel(m_hCbxBaudrate, m_pConfig->getDMX_BaudrateIndex());
char buf[10];
HWND control;
control = getDlgItem(IDC_EDT_DMX_BASE);
Edit_LimitText( control , 256);
Edit_SetText(control, m_pConfig->getDMX_BaseChannels() );
control = getDlgItem(IDC_EDT_DMX_RGB);
Edit_LimitText(control, 2);
sprintf(buf,"%d",m_pConfig->getDMX_RGB_Channels());
Edit_SetText(control, buf);
return ATMO_FALSE;
}
示例4: EditItem_OnInitDialog
BOOL EditItem_OnInitDialog( HWND hwnd, HWND hwndFocus, LPARAM lParam )
{
INT i;
CHAR szBuf[128];
HWND hwndCtrl;
nListContent = -1;
hwndCtrl = GetDlgItem( hwnd, IDC_EDIT_ITEM_PIXEL_SIZE );
Edit_LimitText( hwndCtrl, 8 );
hwndCtrl = GetDlgItem( hwnd, IDC_EDIT_ITEM_NAME );
Edit_LimitText( hwndCtrl, 30 );
hwndCtrl = GetDlgItem( hwnd, IDC_EDIT_ITEM_TYPE );
for( i = 0; i < NUM_ITEM_TYPES; ++i )
{
ComboBox_AddString( hwndCtrl, GetItemTypeString( i ) );
}
ComboBox_SetCurSel( hwndCtrl, nNewItemType );
DoubleToString( szBuf, dNewPixelSize, 2 );
Edit_SetText( GetDlgItem( hwnd, IDC_EDIT_ITEM_PIXEL_SIZE ), szBuf );
Edit_SetText( GetDlgItem( hwnd, IDC_EDIT_ITEM_NAME ), szNewItemName );
EditItem_TypeChanged( hwnd );
AllDialogs_OnInitDialog( hwnd, hwndFocus, lParam );
return TRUE;
} // EditItem_OnInitDialog
示例5: EditNoise_OnInitDialog
BOOL EditNoise_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)
{
CHAR szBuf[128];
HWND hwndCtrl;
hwndCtrl = GetDlgItem(hwnd, IDC_EDIT_NOISE_NAME);
Edit_LimitText(hwndCtrl, 30);
Edit_SetText(hwndCtrl, szNewNoiseName);
hwndCtrl = GetDlgItem(hwnd, IDC_EDIT_NOISE_RADIUS);
Edit_LimitText(hwndCtrl, 8);
DoubleToString(szBuf, dNewRadius, 0);
Edit_SetText(hwndCtrl, szBuf);
hwndCtrl = GetDlgItem(hwnd, IDC_EDIT_NOISE_HEIGHT);
Edit_LimitText(hwndCtrl, 8);
DoubleToString(szBuf, dNewHeight, 0);
Edit_SetText(hwndCtrl, szBuf);
hwndCtrl = GetDlgItem(hwnd, IDC_EDIT_NOISE_DELAY);
Edit_LimitText(hwndCtrl, 8);
wsprintf(szBuf, "%d", nNewDelay);
Edit_SetText(hwndCtrl, szBuf);
EditNoise_InitList(hwnd);
AllDialogs_OnInitDialog(hwnd, hwndFocus, lParam);
return TRUE;
} // EditNoise_OnInitDialog
示例6: Edit_LimitText
ATMO_BOOL CAtmoColorPicker::InitDialog(WPARAM wParam)
{
CLanguage *Lng = new CLanguage;
HWND hwndCtrl;
hwndCtrl = this->getDlgItem(IDC_EDT_RED);
Edit_LimitText(hwndCtrl,3);
hwndCtrl = this->getDlgItem(IDC_EDT_GREEN);
Edit_LimitText(hwndCtrl,3);
hwndCtrl = this->getDlgItem(IDC_EDT_BLUE);
Edit_LimitText(hwndCtrl,3);
hwndCtrl = this->getDlgItem(IDC_SL_RED);
SendMessage(hwndCtrl, TBM_SETRANGEMIN, 0, 0);
SendMessage(hwndCtrl, TBM_SETRANGEMAX, 0, 255);
SendMessage(hwndCtrl, TBM_SETPOS, 1, this->m_iRed);
SendMessage(hwndCtrl, TBM_SETTICFREQ, 8, 0);
hwndCtrl = this->getDlgItem(IDC_SL_GREEN);
SendMessage(hwndCtrl, TBM_SETRANGEMIN, 0, 0);
SendMessage(hwndCtrl, TBM_SETRANGEMAX, 0, 255);
SendMessage(hwndCtrl, TBM_SETPOS, 1, this->m_iGreen);
SendMessage(hwndCtrl, TBM_SETTICFREQ, 8, 0);
hwndCtrl = this->getDlgItem(IDC_SL_BLUE);
SendMessage(hwndCtrl, TBM_SETRANGEMIN, 0, 0);
SendMessage(hwndCtrl, TBM_SETRANGEMAX, 0, 255);
SendMessage(hwndCtrl, TBM_SETPOS, 1, this->m_iBlue);
SendMessage(hwndCtrl, TBM_SETTICFREQ, 8, 0);
UpdateColorControls(ATMO_TRUE, ATMO_TRUE);
Lng->szCurrentDir[Lng->SetLngPath()];
sprintf(Lng->szFileINI, "%s\\Language.ini\0", Lng->szCurrentDir);
GetPrivateProfileString("Common", "Language", "English", Lng->szLang, 256, Lng->szFileINI);
// Read Buffer from IniFile
sprintf(Lng->szTemp, "%s\\%s.xml\0", Lng->szCurrentDir, Lng->szLang);
Lng->XMLParse(Lng->szTemp, Lng->sTextCPicker, "ColorPicker");
SendMessage(getDlgItem(IDC_STATIC22), WM_SETTEXT, 0, (LPARAM)(LPCTSTR)(Lng->sTextCPicker[0]));
SendMessage(getDlgItem(IDC_STATIC23), WM_SETTEXT, 0, (LPARAM)(LPCTSTR)(Lng->sTextCPicker[1]));
SendMessage(getDlgItem(IDC_STATIC24), WM_SETTEXT, 0, (LPARAM)(LPCTSTR)(Lng->sTextCPicker[2]));
SendMessage(this->m_hDialog, WM_SETTEXT, 0, (LPARAM)(LPCTSTR)(Lng->sTextCPicker[3]));
SendMessage(getDlgItem(IDCANCEL), WM_SETTEXT, 0, (LPARAM)(LPCTSTR)(Lng->sTextCPicker[4]));
return ATMO_TRUE;
}
示例7: EditTrigger_OnInitDialog
BOOL EditTrigger_OnInitDialog( HWND hwnd, HWND hwndFocus, LPARAM lParam )
{
CHAR szBuf[128];
HWND hwndCtrl;
hwndCtrl = GetDlgItem( hwnd, IDC_EDIT_TRIGGER_NAME );
Edit_LimitText( hwndCtrl, 30 );
Edit_SetText( hwndCtrl, szNewTriggerName );
hwndCtrl = GetDlgItem( hwnd, IDC_EDIT_TRIGGER_RADIUS );
Edit_LimitText( hwndCtrl, 8 );
DoubleToString( szBuf, dNewRadius, 0 );
Edit_SetText( hwndCtrl, szBuf );
hwndCtrl = GetDlgItem( hwnd, IDC_EDIT_TRIGGER_HEIGHT );
Edit_LimitText( hwndCtrl, 8 );
DoubleToString( szBuf, dNewHeight, 0 );
Edit_SetText( hwndCtrl, szBuf );
CheckDlgButton( hwnd,
IDC_EDIT_TRIGGER_PROXIMITY,
(wNewFlags & TF_PROXIMITY_TRIGGER) ? 1 : 0 );
CheckDlgButton( hwnd,
IDC_EDIT_TRIGGER_USER,
(wNewFlags & TF_USER_TRIGGER) ? 1 : 0 );
CheckDlgButton( hwnd,
IDC_EDIT_TRIGGER_ITEM_REQUIRED,
(wNewFlags & TF_ITEM_REQUIRED) ? 1 : 0 );
CheckDlgButton( hwnd,
IDC_EDIT_TRIGGER_SOUND,
(wNewFlags & TF_SOUND) ? 1 : 0 );
CheckDlgButton( hwnd,
IDC_EDIT_TRIGGER_END_LEVEL,
(wNewFlags & TF_END_LEVEL) ? 1 : 0 );
CheckDlgButton( hwnd,
IDC_EDIT_TRIGGER_END_GAME,
(wNewFlags & TF_END_GAME) ? 1 : 0 );
nListContent = 0;
EditTrigger_InitList( hwnd );
AllDialogs_OnInitDialog( hwnd, hwndFocus, lParam );
return TRUE;
} // EditTrigger_OnInitDialog
示例8: RASBlinkProperties_OnInitDialog
/* This function handles the WM_INITDIALOG message.
*/
BOOL FASTCALL RASBlinkProperties_OnInitDialog( HWND hwnd, HWND hwndFocus, LPARAM lParam )
{
LPCAMPROPSHEETPAGE psp;
LPBLINKENTRY lpbe;
HWND hwndList;
HWND hwndEdit;
/* Dereference and save the handle of the database, folder
* or topic whose properties we're showing.
*/
psp = (LPCAMPROPSHEETPAGE)lParam;
lpbe = (LPVOID)psp->lParam;
SetWindowLong( hwnd, DWL_USER, (LPARAM)lpbe );
/* Set Use Ras checkbox.
*/
CheckDlgButton( hwnd, IDD_USERAS, lpbe->rd.fUseRAS );
/* Set flag indicating that the combo box has not been
* filled with the RAS connections.
*/
hwndList = GetDlgItem( hwnd, IDD_LIST );
ComboBox_AddString( hwndList, lpbe->rd.szRASEntryName );
ComboBox_SetCurSel( hwndList, 0 );
fRasFill = FALSE;
/* Show current user name and password.
*/
hwndEdit = GetDlgItem( hwnd, IDD_USERNAME );
Edit_SetText( hwndEdit, lpbe->rd.szRASUserName );
Edit_LimitText( hwndEdit, UNLEN );
/* Show current password.
*/
hwndEdit = GetDlgItem( hwnd, IDD_PASSWORD );
Amuser_Decrypt( lpbe->rd.szRASPassword, rgEncodeKey );
Edit_LimitText( hwndEdit, PWLEN );
Edit_SetText( hwndEdit, lpbe->rd.szRASPassword );
Amuser_Encrypt( lpbe->rd.szRASPassword, rgEncodeKey );
/* Disable list box and label if RAS disabled.
*/
EnableControl( hwnd, IDD_PAD1, lpbe->rd.fUseRAS );
EnableControl( hwnd, IDD_PAD2, lpbe->rd.fUseRAS );
EnableControl( hwnd, IDD_PAD3, lpbe->rd.fUseRAS );
EnableControl( hwnd, IDD_LIST, lpbe->rd.fUseRAS );
EnableControl( hwnd, IDD_USERNAME, lpbe->rd.fUseRAS );
EnableControl( hwnd, IDD_PASSWORD, lpbe->rd.fUseRAS );
return( TRUE );
}
示例9: TabPage_6_OnInitDialog
BOOL TabPage_6_OnInitDialog(HWND hDlg,WPARAM wParam,LPARAM lParm)
{
TabPage_6_FillComboBox(GetDlgItem(hDlg,ComboBoxID),Graph_Type);
// 限定輸入字符個數
Edit_LimitText(GetDlgItem(hDlg,EditControlID[1]),255);
Edit_LimitText(GetDlgItem(hDlg,EditControlID[2]),5);
Edit_LimitText(GetDlgItem(hDlg,EditControlID[3]),5);
Button_SetCheck(GetDlgItem(hDlg,CheckBoxID),BST_CHECKED);
Edit_SetReadOnly(GetDlgItem(hDlg,EditControlID[1]),TRUE);
Edit_SetText(GetDlgItem(hDlg,EditControlID[0]),TEXT("數據輸入"));
return TRUE;
}
示例10: NewSig_OnInitDialog
/* This function handles the WM_INITDIALOG message.
*/
BOOL FASTCALL NewSig_OnInitDialog( HWND hwnd, HWND hwndFocus, LPARAM lParam )
{
Edit_LimitText( GetDlgItem( hwnd, IDD_EDIT ), 8 );
EnableControl( hwnd, IDOK, FALSE );
SetWindowLong( hwnd, DWL_USER, lParam );
return( TRUE );
}
示例11: CalPos
void CEditWnd::Init(CEditUI* pOwner)
{
m_pOwner = pOwner;
RECT rcPos = CalPos();
UINT uStyle = WS_CHILD | ES_AUTOHSCROLL;
if (m_pOwner->IsPasswordMode()) uStyle |= ES_PASSWORD;
Create(m_pOwner->GetManager()->GetPaintWindow(), NULL, uStyle, 0, rcPos);
SetWindowFont(m_hWnd, m_pOwner->GetManager()->GetFontInfo(m_pOwner->GetFont())->hFont, TRUE);
Edit_LimitText(m_hWnd, m_pOwner->GetMaxChar());
if (m_pOwner->IsPasswordMode()) Edit_SetPasswordChar(m_hWnd, m_pOwner->GetPasswordChar());
Edit_SetText(m_hWnd, m_pOwner->GetText());
Edit_SetModify(m_hWnd, FALSE);
SendMessage(EM_SETMARGINS, EC_LEFTMARGIN | EC_RIGHTMARGIN, MAKELPARAM(0, 0));
Edit_Enable(m_hWnd, m_pOwner->IsEnabled() == true);
Edit_SetReadOnly(m_hWnd, m_pOwner->IsReadOnly() == true);
::ShowWindow(m_hWnd, SW_SHOWNOACTIVATE);
::SetFocus(m_hWnd);
m_bInit = true;
}
示例12: LocalTopic_OnInitDialog
/* This function handles the WM_INITDIALOG message.
*/
BOOL FASTCALL LocalTopic_OnInitDialog( HWND hwnd, HWND hwndFocus, LPARAM lParam )
{
HWND hwndList;
HWND hwndEdit;
CURMSG curmsg;
int index;
/* Fill the listbox with the list of folders.
*/
hwndList = GetDlgItem( hwnd, IDD_LIST );
FillListWithFolders( hwnd, IDD_LIST );
/* Highlight the current folder or topic.
*/
Ameol2_GetCurrentTopic( &curmsg );
if( NULL != curmsg.pFolder )
{
ASSERT( NULL != curmsg.pcat );
if( NULL == curmsg.pcl )
curmsg.pcl = Amdb_GetFirstFolder( curmsg.pcat );
if( CB_ERR != ( index = ComboBox_FindStringExact( hwndList, -1, curmsg.pcl ) ) )
ComboBox_SetCurSel( hwndList, index );
}
/* Limit the input field.
*/
VERIFY( hwndEdit = GetDlgItem( hwnd, IDD_EDIT ) );
Edit_LimitText( hwndEdit, LEN_TOPICNAME );
EnableControl( hwnd, IDOK, FALSE );
SetFocus( hwndEdit );
return( FALSE );
}
示例13: ViewItems_OnInitDialog
BOOL ViewItems_OnInitDialog( HWND hwnd, HWND hwndFocus, LPARAM lParam )
{
INT i;
HWND hwndCtrl;
hwndCtrl = GetDlgItem( hwnd, IDC_ITEM_LIST );
for( i = 0; i < po->nItems; ++i )
{
ListBox_AddString( hwndCtrl, po->pItemData[i].item_name );
}
ListBox_SetCurSel( hwndCtrl, 0 );
hwndCtrl = GetDlgItem( hwnd, IDC_ITEM_TYPE );
Static_SetText( hwndCtrl, GetItemTypeString( po->pItemData[0].item_type ) );
hwndCtrl = GetDlgItem( hwnd, IDC_ITEM_PIXEL_SIZE );
Edit_LimitText( hwndCtrl, 8 );
ViewItems_ItemChanged( hwnd );
AllDialogs_OnInitDialog( hwnd, hwndFocus, lParam );
return TRUE;
} // ViewItems_OnInitDialog
示例14: PathSettings_OnInitDialog
BOOL PathSettings_OnInitDialog(HWND hDlg, HWND hwndFocus, LPARAM lParam)
{
HWND hwnd = GetDlgItem(hDlg, IDC_PATHLIST);
/* ComboBox_AddString(hwnd, ROMKEY);
ComboBox_AddString(hwnd, BATTERYKEY);
ComboBox_AddString(hwnd, STATEKEY);
ComboBox_AddString(hwnd, SCREENSHOTKEY);
ComboBox_AddString(hwnd, AVIKEY);
ComboBox_AddString(hwnd, CHEATKEY);
ComboBox_AddString(hwnd, SOUNDKEY);
ComboBox_AddString(hwnd, FIRMWAREKEY);
ComboBox_SetCurSel(hwnd, 0);*/
// PathSettings_OnSelChange(hDlg, NULL);
associate = GetPrivateProfileInt(SECTION, ASSOCIATEKEY, 0, IniName);
CheckDlgButton(hDlg, IDC_USELASTVISIT, (path.savelastromvisit) ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hDlg, IDC_ASSOCIATE, (associate) ? BST_CHECKED : BST_UNCHECKED);
CheckRadioButton(hDlg, IDC_PNG, IDC_BMP, (int)path.imageformat());
CheckRadioButton(hDlg, IDC_R4TYPE1, IDC_R4TYPE2, (int)path.r4Format);
// IDC_FORMATEDIT setup
SetDlgItemText(hDlg, IDC_FORMATEDIT, path.screenshotFormat);
hwnd = GetDlgItem(hDlg, IDC_FORMATEDIT);
Edit_LimitText(hwnd, MAX_FORMAT);
HWND toolTip = CreateWindowExW(NULL,
TOOLTIPS_CLASSW, NULL,
TTS_ALWAYSTIP,
CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT,
hDlg, NULL,
hAppInst, NULL);
SendMessage(toolTip, TTM_SETMAXTIPWIDTH, NULL, (LPARAM)330);
SetWindowPos(toolTip, HWND_TOPMOST, 0,0,0,0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
SetDlgItemText(hDlg, IDC_ROMPATHEDIT, path.pathToRoms);
SetDlgItemText(hDlg, IDC_SAVERAMPATHEDIT, path.pathToBattery);
SetDlgItemText(hDlg, IDC_STATEPATHEDIT, path.pathToStates);
SetDlgItemText(hDlg, IDC_SCREENSHOTPATHEDIT, path.pathToScreenshots);
SetDlgItemText(hDlg, IDC_AVIPATHEDIT, path.pathToAviFiles);
SetDlgItemText(hDlg, IDC_CHEATPATHEDIT, path.pathToCheats);
SetDlgItemText(hDlg, IDC_LUAPATHEDIT, path.pathToLua);
TOOLINFO ti;
ZeroMemory(&ti, sizeof(ti));
ti.cbSize = sizeof(ti);
ti.hwnd = hDlg;
ti.hinst = hAppInst;
ti.uFlags = TTF_SUBCLASS | TTF_IDISHWND;
ti.uId = (UINT_PTR)hwnd;
ti.lpszText = "The format a screenshot should be saved in.\r\n%f\t\t\tFilename\r\n%D\t\t\tDay:Two Digit\r\n%M\t\t\tMonth:Two Digit\r\n%Y\t\t\tYear:Four Digit\r\n%h\t\t\tHour:Two Digit\r\n%m\t\t\tMinute: Two Digit\r\n%s\t\t\tSecond: Two Digit\r\n%r\t\tRandom: Min:0 Max:RAND_MAX";
GetClientRect(hwnd, &ti.rect);
SendMessage(toolTip, TTM_ADDTOOL, NULL, (LPARAM)&ti);
return TRUE;
}
示例15: CalPos
void CPathEditWnd::Init( CPathEditUI* pOwner )
{
m_pOwner = pOwner;
RECT rcPos = CalPos();
UINT uStyle = WS_CHILD | ES_AUTOHSCROLL;
if( m_pOwner->IsPasswordMode() ) uStyle |= ES_PASSWORD;
Create(m_pOwner->GetManager()->GetPaintWindow(), NULL, uStyle, 0, rcPos);
HFONT hFont=NULL;
int iFontIndex=m_pOwner->GetFont();
if (iFontIndex!=-1)
hFont=m_pOwner->GetManager()->GetFont(iFontIndex);
if (hFont==NULL)
hFont=m_pOwner->GetManager()->GetDefaultFontInfo()->hFont;
SetWindowFont(m_hWnd, hFont, TRUE);
Edit_LimitText(m_hWnd, m_pOwner->GetMaxChar());
if( m_pOwner->IsPasswordMode() ) Edit_SetPasswordChar(m_hWnd, m_pOwner->GetPasswordChar());
Edit_SetText(m_hWnd, m_pOwner->GetText());
Edit_SetModify(m_hWnd, FALSE);
SendMessage(EM_SETMARGINS, EC_LEFTMARGIN | EC_RIGHTMARGIN, MAKELPARAM(0, 0));
Edit_Enable(m_hWnd, m_pOwner->IsEnabled() == true);
Edit_SetReadOnly(m_hWnd, m_pOwner->IsReadOnly() == true);
//Styls
LONG styleValue = ::GetWindowLong(m_hWnd, GWL_STYLE);
styleValue |= pOwner->GetWindowStyls();
::SetWindowLong(GetHWND(), GWL_STYLE, styleValue);
::ShowWindow(m_hWnd, SW_SHOWNOACTIVATE);
::SetFocus(m_hWnd);
m_bInit = true;
}