Консультация № 21229
23.05.2005, 14:14
0.00 руб.
0 1 1
гДПЮБЯРБСИРЕ.
с ЛЕМЪ РЮЙЮЪ ОПНАКЕЛЮ:
Edit=CreateWindow("Edit","Edit1",S_MULTILINE|WS_CHILD|WS_BORDER| ES_NOHIDESEL|WS_TABSTOP|ES_CENTER |WS_VISIBLE|WS_SIZEBOX,
10, 10, 300, 30, hwnd, (HMENU)10001, hThisInstance, NULL) ; - РЮЙ Ъ ЯНГДЮЧ Edit МЮ ЯБНЕИ ТНПЛЕ, МН НМ БШЦКЪДХР МЕ СРНОКЕММШЛ, Ю БШОСЙКШЛ, Р.Е. Ъ ББНФС РЕЙЯР МЮ ОНБЕПУМНЯРХ, ЙНРНПЮЪ БХГСЮКЭМН БШЦКЪДХР БШОСЙКНИ. еЯКХ САПЮРЭ BORDER, РН Edit ЯРЮМНБХРЯЪ ОКНЯЙХЛ Х РНФЕ БШЦКЪДХР МЕМНПЛЮКЭМН. ъ ОПХБШЙ Й РНЛС, ВРН Edit СРНОКЕМ.
цДЕ ВРН МЕ РЮЙ? сФЕ 3 ДМЪ MSDN ЙНБШПЪЧ...
б ОПХКНФЕМХХ НОХЯЮМХЕ ЯНГДЮМХЪ ЦКЮБМНЦН НЙМЮ.

Приложение:
int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil){ HWND hwnd; /* This is the handle for our window */ MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ /* The Window structure */ wincl.hInstance = hThisInstance; wincl.lpszClassName = szClassName; wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */ wincl.style = CS_DBLCLKS; /* Catch double-clicks */ wincl.cbSize = sizeof (WNDCLASSEX); /* Use default icon and mouse-pointer */ wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION); wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION); wincl.hCursor = LoadCursor (NULL, IDC_ARROW); wincl.lpszMenuName = NULL; /* No menu */ wincl.cbClsExtra = 0; /* No extra bytes after the window class */ wincl.cbWndExtra = 0; /* structure or the window instance */ /* Use Windows‘s default color as the background of the window */ wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND; /* Register the window class, and if it fails quit the program */ if (!RegisterClassEx (&wincl)) return 0; /* The class is registered, let‘s create the program*/ hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "File Open Read Write Close ", /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 544, /* The programs width */ 375, /* and height in pixels */ HWND_DESKTOP, /* The window is a child-window to desktop */ NULL, /* No menu */ hThisInstance, /* Program Instance handler */ NULL /* No Window Creation data */ ); Edit = CreateWindow("Edit", "Edit1", ES_MULTILINE|WS_CHILD|WS_BORDER|ES_NOHIDESEL |WS_TABSTOP|ES_CENTER |WS_VISIBLE|WS_SIZEBOX, 10, 10, 300, 30, hwnd, (HMENU)10001, hThisInstance, NULL) ;

Обсуждение

Неизвестный
23.05.2005, 23:48
общий
это ответ
Здравствуйте, gridmal!
h1=CreateWindowEx(WS_EX_CLIENTEDGE,"Edit", "Edit1", ES_MULTILINE|WS_CHILD|WS_BORDER|ES_NOHIDESEL|WS_TABSTOP|ES_CENTER |WS_VISIBLE, 10, 100, 300, 30, this->m_hWnd, NULL, NULL, NULL) ;
Форма ответа