请教:如何用edit控件设计像windows记事本那样的窗口,就是说窗口边界是凹陷的,不像书上那种是平铺的!?? hwndEdit = CreateWindow (TEXT ("edit"), NULL,
WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |
WS_BORDER | ES_LEFT | ES_MULTILINE |
ES_AUTOHSCROLL | ES_AUTOVSCROLL,
0, 0, 0, 0, hwnd, (HMENU) ID_EDIT,
((LPCREATESTRUCT) lParam) -> hInstance, NULL) ;这样就是那种平铺的,没有凹陷的效果
WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |
WS_BORDER | ES_LEFT | ES_MULTILINE |
ES_AUTOHSCROLL | ES_AUTOVSCROLL,
0, 0, 0, 0, hwnd, (HMENU) ID_EDIT,
((LPCREATESTRUCT) lParam) -> hInstance, NULL) ;这样就是那种平铺的,没有凹陷的效果
代码如下:
错误结果:
--------------------Configuration: QQ - Win32 Debug--------------------
Compiling...
QQ.CPP
PopPrnt0.c
PopFile.c
PopFind.c
PopFont.c
Linking...
QQ.OBJ : error LNK2001: unresolved external symbol "int __cdecl PopFindReplaceText(struct HWND__ *,int *,struct tagFINDREPLACEA *)" (?PopFindReplaceText@@YAHPAUHWND__@@PAHPAUtagFINDREPLACEA@@@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "int __cdecl PopFindFindText(struct HWND__ *,int *,struct tagFINDREPLACEA *)" (?PopFindFindText@@YAHPAUHWND__@@PAHPAUtagFINDREPLACEA@@@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "void __cdecl PopFontDeinitialize(void)" (?PopFontDeinitialize@@YAXXZ)
QQ.OBJ : error LNK2001: unresolved external symbol "void __cdecl PopFontSetFont(struct HWND__ *)" (?PopFontSetFont@@YAXPAUHWND__@@@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "int __cdecl PopFontChooseFont(struct HWND__ *)" (?PopFontChooseFont@@YAHPAUHWND__@@@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "struct HWND__ * __cdecl PopFindReplaceDlg(struct HWND__ *)" (?PopFindReplaceDlg@@YAPAUHWND__@@PAU1@@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "int __cdecl PopFindNextText(struct HWND__ *,int *)" (?PopFindNextText@@YAHPAUHWND__@@PAH@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "int __cdecl PopFindValidFind(void)" (?PopFindValidFind@@YAHXZ)
QQ.OBJ : error LNK2001: unresolved external symbol "struct HWND__ * __cdecl PopFindFindDlg(struct HWND__ *)" (?PopFindFindDlg@@YAPAUHWND__@@PAU1@@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "int __cdecl PopPrntPrintFile(struct HINSTANCE__ *,struct HWND__ *,struct HWND__ *,char *)" (?PopPrntPrintFile@@YAHPAUHINSTANCE__@@PAUHWND__@@1PAD@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "int __cdecl PopFileSaveDlg(struct HWND__ *,char *,char *)" (?PopFileSaveDlg@@YAHPAUHWND__@@PAD1@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "int __cdecl PopFileWrite(struct HWND__ *,char *)" (?PopFileWrite@@YAHPAUHWND__@@PAD@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "int __cdecl PopFileRead(struct HWND__ *,char *)" (?PopFileRead@@YAHPAUHWND__@@PAD@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "int __cdecl PopFileOpenDlg(struct HWND__ *,char *,char *)" (?PopFileOpenDlg@@YAHPAUHWND__@@PAD1@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "void __cdecl PopFontInitialize(struct HWND__ *)" (?PopFontInitialize@@YAXPAUHWND__@@@Z)
QQ.OBJ : error LNK2001: unresolved external symbol "void __cdecl PopFileInitialize(struct HWND__ *)" (?PopFileInitialize@@YAXPAUHWND__@@@Z)
Debug/QQ.exe : fatal error LNK1120: 16 unresolved externals
执行 link.exe 时出错.QQ.exe - 1 error(s), 0 warning(s)