I use a Modless Dialog for display the result.
Sometimes, the Modless Dialog doesn't refresh correctly.
for example : In the Modles Dialog, I have a Static Message and a ICON .
I call Modless.Invalidate() in my Parent Dialog. The Static is refreshed but the ICON is NOT refresh.
I add this code for resolving my problem but sometimes the ICON isn't refresh.
// Yield
WMSG msg;
DWORD dwCount = 0;
while( PeekMessage((PMSG)&msg, (HWND) NULL, 0, 0, PM_REMOVE) && (dwCount < 1000 ))
{
dwCount++;
TranslateMessage( (PMSG)&msg );
DispatchMessage( (PMSG)&msg );
}
If anyone can help me
Sometimes, the Modless Dialog doesn't refresh correctly.
for example : In the Modles Dialog, I have a Static Message and a ICON .
I call Modless.Invalidate() in my Parent Dialog. The Static is refreshed but the ICON is NOT refresh.
I add this code for resolving my problem but sometimes the ICON isn't refresh.
// Yield
WMSG msg;
DWORD dwCount = 0;
while( PeekMessage((PMSG)&msg, (HWND) NULL, 0, 0, PM_REMOVE) && (dwCount < 1000 ))
{
dwCount++;
TranslateMessage( (PMSG)&msg );
DispatchMessage( (PMSG)&msg );
}
If anyone can help me