Click here to Skip to main content
15,897,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionconvert into string Pin
polopo22-Aug-08 23:10
polopo22-Aug-08 23:10 
AnswerRe: convert into string Pin
Cedric Moonen22-Aug-08 23:28
Cedric Moonen22-Aug-08 23:28 
AnswerRe: convert into string Pin
David Crow23-Aug-08 4:06
David Crow23-Aug-08 4:06 
QuestionRe: convert into string Pin
Hamid_RT23-Aug-08 6:44
Hamid_RT23-Aug-08 6:44 
AnswerRe: convert into string Pin
SandipG 23-Aug-08 8:59
SandipG 23-Aug-08 8:59 
QuestionDelete Tree Item Pin
NewVC++22-Aug-08 21:09
NewVC++22-Aug-08 21:09 
AnswerRe: Delete Tree Item Pin
_AnsHUMAN_ 22-Aug-08 21:47
_AnsHUMAN_ 22-Aug-08 21:47 
QuestionSHFullScreen() causes MessageBox dismissal to be slow (Pocket PC Windows Mobile 6) Pin
abupriabi@yahoo.com22-Aug-08 15:37
abupriabi@yahoo.com22-Aug-08 15:37 
Hi,

I am developing an MFC application on PocketPC (HP iPAQ) running Mobile 6 using VS 2008.
I am able to hide the taskbard and start button at the top for my full screen application.
In OnInitDialog() I have the following code:

RECT rc;
::SetRect(&rc, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
if (::SHFullScreen(this->m_hWnd, SHFS_HIDETASKBAR | SHFS_HIDESTARTICON))
{
MoveWindow(rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top, FALSE);
}

Everything is fine, but if the application displays a MessageBox or pops up another window (popup style) on top of the application window and the MessageBox or the popup window is dismissed, it takes a very very long time for the MessageBox or popup window to disappear and the whole screen appears frozen.

One more thing is that if I click on the SIP button, the SIP keyboard appears immediately, but the screen is frozen (can not input anything in the SIP) and it takes a long time to input anything using the SIP. After a while my window is shifted down to the same position as when TASKE BAR is displayed, but the TASK BAR itself is not displayed. It is at this point that I am able to input something through SIP. Please note that my window is shifted down, but the TASKBAR itslef is not displayed. At this point if a messagebox or popup window is displayed the dismissing (closing) of that window is pretty fast.

So the issue is that if the TaskBar is hidden using SHFULLScreen and the application window is moved to occupy the taskbar windows's space, the dismissal (closing) of the MessageBox or popup windows displayed by application is very slow.

I used RemoteSpy and found the following messages delived to my application window when the MessageBox or popup window is displated.

WM_WININICHANGE
WM_WINDOWPOSCHANGED
WM_MOVE
WM_SIZE
WM_PAINT
WM_ERASEBLGD
WM_CTLCOLORDLG
WM_DRAWITEM
WM_DRAWITEM
WM_DRAWITEM
WM_CTLCOLORBTN
WM_DRAWITEM

I would greatly appreciate your help.


Thanks a lot!
-A
QuestionFOF_WANTMAPPINGHANDLE Pin
Bram van Kampen22-Aug-08 15:26
Bram van Kampen22-Aug-08 15:26 
AnswerRe: FOF_WANTMAPPINGHANDLE Pin
Perspx23-Aug-08 0:00
Perspx23-Aug-08 0:00 
GeneralRe: FOF_WANTMAPPINGHANDLE Pin
Bram van Kampen27-Aug-08 14:42
Bram van Kampen27-Aug-08 14:42 
GeneralRe: FOF_WANTMAPPINGHANDLE Pin
Perspx27-Aug-08 14:49
Perspx27-Aug-08 14:49 
QuestionCFtpConnection::GetFile() fails after CInternetSession::OpenURL() Pin
greghint22-Aug-08 13:57
greghint22-Aug-08 13:57 
Question"Unresolved External" error in object declaration Pin
nimaalamtsaz22-Aug-08 10:28
nimaalamtsaz22-Aug-08 10:28 
QuestionRe: "Unresolved External" error in object declaration Pin
David Crow22-Aug-08 10:49
David Crow22-Aug-08 10:49 
AnswerRe: "Unresolved External" error in object declaration Pin
nimaalamtsaz23-Aug-08 9:19
nimaalamtsaz23-Aug-08 9:19 
AnswerRe: "Unresolved External" error in object declaration Pin
Jijo.Raj22-Aug-08 10:53
Jijo.Raj22-Aug-08 10:53 
AnswerRe: "Unresolved External" error in object declaration Pin
nimaalamtsaz23-Aug-08 9:33
nimaalamtsaz23-Aug-08 9:33 
QuestionDoxygen? Pin
Hugh S. Myers22-Aug-08 9:37
Hugh S. Myers22-Aug-08 9:37 
QuestionTreeView question [modified] Pin
Dennis L22-Aug-08 6:33
Dennis L22-Aug-08 6:33 
AnswerRe: TreeView question Pin
Mark Salsbery22-Aug-08 6:51
Mark Salsbery22-Aug-08 6:51 
AnswerRe: TreeView question Pin
Hamid_RT22-Aug-08 6:52
Hamid_RT22-Aug-08 6:52 
GeneralRe: TreeView question Pin
Dennis L22-Aug-08 6:57
Dennis L22-Aug-08 6:57 
QuestionRe: TreeView question Pin
Mark Salsbery22-Aug-08 7:30
Mark Salsbery22-Aug-08 7:30 
AnswerRe: TreeView question Pin
led mike22-Aug-08 7:36
led mike22-Aug-08 7:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.