|
Hello!
I have a dialog based MFC application with "Style: Popup" and "Border: None". So the system menu, title bar, minimize box, maximize box are not displayed. Also the "Caption" edit is disabled. I want to set a title for the application to be displayed in the taskbar since with the above mentioned settings it only displays the icon.
How can I set the title?
Thanks,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
SetWindowText()
SkyWalker
|
|
|
|
|
I wasn't expecting it to be so simple, but hey, I don't mind.
thanks a lot.
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
Hi,
I have to display a window with top pane displaying a richtext edit control and bottom one displaying msflexgrid.
I added two controls(rich text edit control and msflexigrid).
Created two views.
Added a variable(rich text) for the first view.
Added a variable(msflexigrid) for the second view.
In mainframe.cpp in oncreateclient
i created a static splitter and createdviews with the two views.
But none of the splitter window(view?) is displaying activex control.
What should i do.
Regards,
|
|
|
|
|
Take care of the z-order of the windows. The farther is "less" visible.
SkyWalker
|
|
|
|
|
Thank you. It worked. But a small problem.
The top pane/view contains richtext edit control. on CSize of View function i added code to adjust richtext edit control position. This is working fine.
But the bottom pane/view contains msflexgrid. on CSize of View function i added code to adjust msflexigrid control position. This is not working i mean it is in the initial position of (0,0,0,0). What property of msflexigrid control should be set or is it the intended behaviour of msflexigrid control.
Regards
-- modified at 23:29 Tuesday 18th October, 2005
|
|
|
|
|
|
Hi,
I don't now the number of columns in advance for a msflexigrid. How to compute the columns dynamically and pass to the function setcols.
|
|
|
|
|
|
Hello!
i'm trying to change the contrast of my windows CE 4.2 device.
After some search on the net i found some methods to change the contrast,
all based on ExtEscape() function. Unfortunately ExtEscape always returns 0
on my device, no matter what escape code i pass to it.
This is a snapshot of my code:
bool SetContrast(int nParam)
{
ContrastCmdInputParm ContrastParm;
int rc, fQueryEsc;
fQueryEsc = CONTRASTCOMMAND;
HDC hdc= GetDC(NULL);
rc = ExtEscape (hdc, QUERYESCSUPPORT, sizeof (fQueryEsc),
(LPSTR)&fQueryEsc, 0, 0);
if (rc == 0) {
// No support, fail.
ReleaseDC (NULL, hdc);
return false;
}
ContrastParm.command = CONTRAST_CMD_SET;
ContrastParm.parm = nParam;
int nCode= ExtEscape(hdc, CONTRASTCOMMAND, sizeof(ContrastCmdInputParm),
(LPCSTR)&ContrastParm, 0, NULL);
ReleaseDC(NULL, hdc);
return (nCode > 0);
}
This function always fail with no support.
Can anyone help me?
|
|
|
|
|
I am new to WinCE & want to start up fast
i have 1+ exp in VC++.
Can u suggest me some good online reference
if u have some ebooks thats great pls send me
I am plaining a project on VOIP in WinCE
U r reply is importent to me
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
I am new to WinCE & want to start up fast
i have 1+ exp in VC++.
Can u suggest me some good online reference
if u have some ebooks thats great pls send me
I am plaining a project on VOIP in WinCE
U r reply is importent to me
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hi all
I have an EXE crashing . But I can not use map files as the EXE is not produced from VC++ envt . This is already produced EXE so how can I find out the entry point of crash from the EXE ?
redindian
|
|
|
|
|
Did you try WinDbg[^]? It's not very easy to use, it's a command line debugger, but it might offer you valuable clues to debug the problem.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
dear sir,
i want to change background color of push buttons in my MFC program .how to change clor of buttons at run time
|
|
|
|
|
|
Iain Clarke wrote: Do a search for OnCtlColor in msdn, and it will even give sample functions.
Sorry For Correcting you Sir, You can't Paint PushButton using OnCtlColor Handller
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
aloktambi wrote: i want to change background color of push buttons in my MFC program
You have to Create Owner Drawn Button PLUS Handle CButton::DrawItem(...)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi!
How can i create a window that just hangs around without ever getting focus/becoming active.. yet let the user interact with it through mouseclicks?
I want a window that is open, on top of the screen, that does not break the focus on currently focused application. That is, if i have a webpage open such as this.. and i'm writing in a textbox, i can press a button (to change mixer volume for example) and keep writing without having to click in the form.
Hope it's possible! Would sure open a lot of doors for me!
Thanks for reading!
|
|
|
|
|
The moment you click on it the window will get focus, I don't see how you can avoid this unless you return focus to the previous window at the end of each event.
Elaine
The tigress is here
|
|
|
|
|
Well, I have seen this behaviour in a few applications (mainly professional on-screen keyboards). If you fire up the virtual keyboard that ships with windows xp you will see what i mean. it does not get focus when you click on it's buttons! if you click the titlebar however, it does.. but gives it back to the application that previously had focus whenever you hover the buttons on it. I want to remove all decorations and display only buttons that act just that way (i know how to change focus back to previous window, but that's not what i want).
Thanks!
|
|
|
|
|
As Elaine said, the only way to achieve that is to give the focus back to the window that lost it immediately after getting it in your app.
Intercept WM_SETFOCUS , the wParam is the handle of the window that just lost the focus (Win32 version) or in the CWnd::OnSetFocus method, you get a pointer on the unfocused window CWnd *pOldWnd (MFC).
Then use SetFocus in your turn with this handle (pointer) to yield the focus back to the window that lost it.
~RaGE();
|
|
|
|
|
would intercepting WM_SETFOCUS be any different from calling SetActiveWindow(NULL) within the procedure of the button click?
I tried this:
<br />
LPDWORD pid, hpid;<br />
GetWindowThreadProcessId((HWND)wParam, pid);<br />
GetWindowThreadProcessId(hwnd, hpid);<br />
<br />
AttachThreadInput((DWORD)pid, (DWORD)hpid, TRUE);<br />
SetFocus((HWND)wParam);<br />
AttachThreadInput((DWORD)pid, (DWORD)hpid, FALSE);<br />
with no success (it does not move focus).
|
|
|
|
|
<br />
case WM_SETFOCUS:<br />
{<br />
LPDWORD pid, hpid;<br />
GetWindowThreadProcessId((HWND)wParam, pid);<br />
GetWindowThreadProcessId(hwnd, hpid);<br />
<br />
AttachThreadInput((DWORD)pid, (DWORD)hpid, TRUE);<br />
SetActiveWindow((HWND)wParam);<br />
SetFocus((HWND)wParam);<br />
SetForegroundWindow((HWND)wParam);<br />
AttachThreadInput((DWORD)pid, (DWORD)hpid, FALSE);<br />
printf("Focus changed %d", wParam);<br />
}<br />
break;<br />
seems to retain the focus on the app as long as i do not doubleclick on my panel.. button procedure is not caught though.
|
|
|
|
|
this does not work with Firefox. If i am editing in the location bar and press the volume button.. the whole url in the locationbar gets selected.. which means that i will overwrite whatever was previously written if i type something on my keyboard (unlike if i use the windows virtual keyboard).
|
|
|
|