|
You are correct in that I am doing event handling, but the control does have the focus, it's just not drawing the focus rect. For example, a checkbox control. The focus rect is missing (even with the mouse) but I can toggle the check.
|
|
|
|
|
anthonym7 wrote: You are correct in that I am doing event handling, but the control does have the focus, it's just not drawing the focus rect. For example, a checkbox control. The focus rect is missing (even with the mouse) but I can toggle the check.
Focus rect will be missing if focus is getting shifted to another control. Look at the example that I have given previously.
|
|
|
|
|
As I mentioned in my previous post, the focus is actually on the correct control. The issue was the missing focus rect. The problem was when I switched to comctl v6 my app took on XP theming and my theme specified to not show focus rects !D'oh!!!
Thanks for your suggestions though.
Ant
|
|
|
|
|
anthonym7 wrote: my theme specified to not show focus rects !D'oh!!!
|
|
|
|
|
Whats the simplest way to make winmm.dll pan sound from left to right?
|
|
|
|
|
I find the function WinExec but it can run a programme like word or acrobat reader --WinExec("C:\\...\\word.exe",..);--
but it can't run a word file--WinExec("C:\\...\\a.doc",..);--
PLZ I need;) a solution as soon and thank for your help.;)
|
|
|
|
|
Use ShellExecute() instead.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
ines ben hamida wrote: but it can't run a word file--WinExec("C:\\...\\a.doc",..);--
CreateProcess .. Winword.exe with filename as Parameter
"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
Support CRY- Child Relief and You
|
|
|
|
|
or you can use ShellExecuteEx
|
|
|
|
|
WhiteSky wrote:
or you can use ShellExecuteEx
Usually I don't prefer ShellExecuteEx.. since you have to fill the structure before actual Calling of function!
"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
Support CRY- Child Relief and You
|
|
|
|
|
is this wrong? if yes, how bad is it?
class B extends class A. each has a virtual destructor.
A* a = new B();
delete a;
by how bad I mean is the loss only in form of memory leak or could this lead to memory corruption?
|
|
|
|
|
avsrivastava wrote: each has a virtual destructor.
Then their is no problem ~B will be called first and then ~A.
"Alot of the people on this forum are incredibly stupid, thinking that the internet is real" Score: 1.0 in the Soap Box
led mike
|
|
|
|
|
No, it's fine.
In this case, B's destructor doesn't have to be virtual; only the base class needs to be.
Best,
Jun
|
|
|
|
|
thanks both of you, got the point.
makes me wonder how people would have managed to code if there was no dynamic dispatch.
|
|
|
|
|
Hi people, I need to create a toolbar in at least 256 colors, but when I create the resource it says I can only use 16 color images.
I'm using VS 2003 C++
Any idea on how can I create toolbar resources in hi color?
Thanks a lot
|
|
|
|
|
You need to edit the toolbar bitmap in an external image editor; or even the bitmap editor in VS.net, but NOT the toolbar editor.
|
|
|
|
|
Yeap, thanks, I find the solution.
steps, just in case someone someday needs to know the same.
1 - Create the image with an image editor as Maximilien says.
2 - Create a normal toolbar with the crapy 16 colors.
3 - Set the new bitmap size in the toolbar
4 - And Before showing the toolbar...
<br />
CBitmap bitmap;<br />
CImageList imageList;<br />
bitmap.LoadBitmap(MAKEINTRESOURCE(IDB_TOOLBAR));<br />
imageList.Create(80, 32, ILC_COLORDDB|ILC_MASK, 13, 1);<br />
imageList.Add(&bitmap, RGB(255,0,255));<br />
cToolBar.SendMessage(TB_SETIMAGELIST, 0, (LPARAM)imageList.m_hImageList);<br />
imageList.Detach();<br />
bitmap.Detach();<br />
|
|
|
|
|
I have an MDI application. Is there any way to display an
modal dialog box after the entire application is initialized?
I want to put together sort of a welcome dialog box.
I tried putting
CMyDialog dlg; dlg.DoModal();
all over the place, but nothing seems to work correctly. I can
display a modal dialog before anything is created, but Im trying
to get it to display after the application is first initialized.
Please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle Brina
|
|
|
|
|
DanYELL wrote: I tried putting
CMyDialog dlg; dlg.DoModal();
all over the place...
In the view's OnInitialUpdate() method?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DanYELL wrote: I want to put together sort of a welcome dialog box.
Is this for a "trial" version? Otherwise that is just annoying.
"Alot of the people on this forum are incredibly stupid, thinking that the internet is real" Score: 1.0 in the Soap Box
led mike
|
|
|
|
|
Hi all,
When using the wprintf function, what indicator must one use if you would want to display a date:
wprintf(L"\tUser Password Age: %d\n", pBuf->usri1_password_age);
Thanx in advance
Only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Programm3r wrote: When using the wprintf function, what indicator must one use if you would want to display a date:
That all depends on what format the date is in. If it's a string, use %s .
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Well, the format will be in a .... not really sure ..
But i'll try the %s.
Thanx for the reply David
Only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
First you want to use the safe version wprintf_s[^]
See GetTimeFormat[^] and GetDateFormat
"Alot of the people on this forum are incredibly stupid, thinking that the internet is real" Score: 1.0 in the Soap Box
led mike
|
|
|
|
|
Thanx for the help
Only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|