umen
May 1st, 2008, 08:36 AM
Hello all
i have Win32 simple GUI that is edit box , this edit box needs to capture text massages from my
application logic . but when i set break point in my application code ( not the GUI part ) it never
go's there only when i close the GUI window .
but now because i closed the GUI window the print to edit box massages never gets the window ( i closed it .)
im using this function ( taking from this forum paq )
static void AppendTextToEditCtrl(HWND hWndEdit, LPCTSTR pszText)
{
int nLength = GetWindowTextLength(hWndEdit);
SendMessage(hWndEdit, EM_SETSEL, (WPARAM)nLength, (LPARAM)nLength);
SendMessage(hWndEdit,EM_REPLACESEL, (WPARAM)FALSE, (LPARAM)pszText);
}
what im doing wrong here ?
why i need to close the window to continue debug my application ?
i have Win32 simple GUI that is edit box , this edit box needs to capture text massages from my
application logic . but when i set break point in my application code ( not the GUI part ) it never
go's there only when i close the GUI window .
but now because i closed the GUI window the print to edit box massages never gets the window ( i closed it .)
im using this function ( taking from this forum paq )
static void AppendTextToEditCtrl(HWND hWndEdit, LPCTSTR pszText)
{
int nLength = GetWindowTextLength(hWndEdit);
SendMessage(hWndEdit, EM_SETSEL, (WPARAM)nLength, (LPARAM)nLength);
SendMessage(hWndEdit,EM_REPLACESEL, (WPARAM)FALSE, (LPARAM)pszText);
}
what im doing wrong here ?
why i need to close the window to continue debug my application ?