请教:如何用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) ;这样就是那种平铺的,没有凹陷的效果

解决方案 »

  1.   

    CreateWindowEx或者是CreateEx就可以,具体忘了,就是后面加个Ex的函数,
      

  2.   

    CreateWindowEx(WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE, TEXT("Edit"), NULL ......
      

  3.   

    设置其Multiline属性和一些附加属性就好了 这个网上有很多你可以去找找。LZ同一个问题貌似发了两个,呵呵...网络不怎么行吧!
      

  4.   

    我想问一下《Windows程序设计》第十一章里面的那个记事本源码是怎么编译的啊,我老是编译不通过,不知为何?有一个是poppad主程序,另外还有几个函数文件,不知是如何将它们连接的?我是用vc.6编译的
    代码如下:
    错误结果:
    --------------------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)
      

  5.   

    回复于:2012-10-29 11:41:09CreateWindowEx或者是CreateEx就可以,具体忘了,就是后面加个Ex的函数,