Hi,
i have a list box in a dialogBox defined in a resource file, if i add the listbox to the dialog the dialog is not displayed from the application clickiing a menu option but if i comment the listbox part the dialog is show without problems any idea?
heres de code of my .rc file
if i comment theCode:#include <windows.h> #include "ids.h" IDM_MENU MENU BEGIN POPUP "&Principal" BEGIN MENUITEM "&Dialogo", IDM_DIALOGO END END IDD_DIALOGO DIALOG 0,0,118,135 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION CAPTION "Dialogo de prueba" FONT 8, "Helv" BEGIN CONTROL "Lista:", -1 , "STATIC", SS_LEFT | WS_CHILD | WS_VISIBLE, 8,9,28,8 CONTROL "", ID_LISTA , "listbox", LBS_STANDARD | WS_CHILD | WS_VISIBLE | WS_TABSTOP,9,19,104,99 CONTROL "Ok" , ID_OK, "button", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 8,116,45,14 CONTROL "Cancelar", ID_CANCELAR, "Button",BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 61,116,45,14 END
CONTROL "", ID_LISTA , "listbox", LBS_STANDARD | WS_CHILD | WS_VISIBLE | WS_TABSTOP,9,19,104,99 part the dialog is drawed without problems so i think the problem is in the listbox part
thanks for any help
I'm using viasual c++ 6.0



LinkBack URL
About LinkBacks


