请教个关于编辑框的问题
请教个问题,关于编辑框的——
代码如下:
...
iEdName = new (ELeave) CEikEdwin;
iEdName- >SetContainerWindowL(*this);
TResourceReader reader;
iCoeEnv- >CreateResourceReaderLC(reader, R_AKNEXEDITOR_VIEW1_EDWIN);
iEdName- >ConstructFromResourceL(reader);
CleanupStack::PopAndDestroy();
iEdName- >SetExtent( TPoint(10, 20), iEdName- >MinimumSize());
iEdName- >SetFocus(ETrue);
...
在资源文件中这样定义
RESOURCE EDWIN r_aknexeditor_view1_edwin
{
flags = EAknEditorFlagDefault;
width = qnn_aknexeditor_view1_edwin_width;(=10)
lines= qnn_aknexeditor_view1_edwin_height;(=1)
maxlength = qnn_aknexeditor_view1_edwin_maxlength;(=10)
}
可是那个编辑框就是显示不出来,倒是有个光标!
不知道是没有这个编辑框呢,还是有这个编辑框,但是没有边框,所以看不见
而且虽然有光标,但是也不能输入东西
很费解!我看一个例子就是这样写的,没什么差别,可是那里就可以正常显示和输入