|
Hello all,
How to change HighLight color from CListCtrl
The highlight in the ClistCtrl always is Blue if i want to change
highlight color to another color How do I do?
Thanks
|
|
|
|
|
|
Hi,
Iam developing an Windows based application, where there are multiple browser windows opened. And when i press CTRL + TAB it shifts to the previous browser(the way in which ) it works in Visual Studio. But my question is:
1) Does windows (i mean the MFC or MFC's API)itself remebers this (the previous active frame window )?
2) If yes, then how and where is this information stored by the window so that i can dosome processing on it?
thanks in advance,
KAB
|
|
|
|
|
Aravind Badrinath Krishnan wrote: 1) Does windows (i mean the MFC or MFC's API)itself remebers this (the previous active frame window )?
AFAIK, The OS manages this for you.
Aravind Badrinath Krishnan wrote: 2) If yes, then how and where is this information stored
I'm not sure it stores it so you can get to it. (If you find otherwise, please let me know)
Aravind Badrinath Krishnan wrote: so that i can dosome processing on it?
Window activation (OnActivate in MFC, or WM_ACTIVATE) is probably a good place to start
- Dy
|
|
|
|
|
Hallo
how do i copy a selected CDC regions to a bitmap variable??
(this are some complex expensive drawings that will not be changed very often.)
Or is it cheaper to save the the drawing as a MemoryDC??
THX
|
|
|
|
|
Hello
Like this
HDC hdc=CreateCompatibleDC(GetDC()->m_hDC);
HBITMAP hBit=CreateCompatibleBitmap(GetDC(),Width,Height);
SelectObject(hdc,hBit);//hBit=(HBITMAP)SelectObject(hdc,hBit);
BitBlt(hdc,0,0,400,400,GetDC()->m_hDC,0,0,SRCCOPY);
SelectObject(hdc,hBit);//hBit=(HBITMAP)SelectObject(hdc,hBit);
|
|
|
|
|
I want to put a cross button on propertyseet is has only default minimize button. I just put the cross button by function modifystyle() but it just show cross button but it does not work. please help.
Ashutosh
|
|
|
|
|
I am sorry , there is a default cross button and i need minimized button.
Ashutosh
|
|
|
|
|
wher can i download free audio codec ?
JAYARAJ
|
|
|
|
|
|
I tried google.
I cont find the solution...
Any one know about where to get free audio codec
JAYARAJ
|
|
|
|
|
|
Hi all
I have created a MFC SDI application.
i have derived the view class from the CHtmlView class and used the LoadFromResource() to load the html page into the view.
Now there were quite a few things that i wanted to stop for ex:
-------) stop the context menu to be displayed when mouse is right clicked on the html page.
-------) stop the mouse selection for the html content.
-------) stop the mouse cursor change over the static text.
All these problems are solved by adding some code in the html page inside the tag.
There is one more behaviour that i want to stop:
"When i press the control button & at the same time scrolls the mouse wheel, the html content is zoomed in & out."
How can i stop this.
Waiting for the suggestions
Regards
|
|
|
|
|
dp_76 wrote: Now there were quite a few things that i wanted to stop for ex:
-------) stop the context menu to be displayed when mouse is right clicked on the html page. [...]
All these problems are solved by adding some code in the html page inside the tag.</blockquote>
If you are trying to handle it via a right-click handler, you will need a better solution! These are quite easy to get around (dispite many web pages that try to prevent the menu in that way). Better to implement the host interface(s) and override the methods used in generating and showing the context menu.
<blockquote class="FQ"><div class="FQA">dp_76 wrote:</div>Now there were quite a few There is one more behaviour that i want to stop:
"When i press the control button & at the same time scrolls the mouse wheel, the html content is zoomed in & out."</blockquote>
I do not think you can get around that one via script. Have you tried using PreTranslateMessage to intercept the <CODE>WM_MOUSEWHELL</CODE> messages if the Control key is down?
Peace!
-=- James<HR><SMALL><FONT COLOR=DarkRed>If you think it costs a lot to do it <B>right</B>, just wait until you find out how much it costs to do it <B><I>wrong</I></B>!</FONT><BR>Avoid driving a vehicle taller than you and remember that <B><I>Professional Driver on Closed Course</I></B> does not mean <B><I>your Dumb Ass on a Public Road</B></I>!<BR><A HREF=http://www.deletefxpfiles.com>DeleteFXPFiles</A> & <A HREF=http://www.checkfavorites.com>CheckFavorites</A></SMALL> (Please rate this post!)
|
|
|
|
|
Can anyone tell me as how if I add 5(int) and 6.5(float), the compiler internally converts integer value 5 to 5.0 and then adds to 6.5???
its a bit urgent can anyone help me out on this please.
Thanks In Advance
|
|
|
|
|
Subramaniam s.V. wrote: how if I add 5(int) and 6.5(float), the compiler internally converts integer value 5 to 5.0 and then adds to 6.5???
What about typecasting...e.g. (float)5+6.5
"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,
yeah it is type casting only but I want to know how the compiler knows to what type it has to type cast ..... and if it knows how does it do it ??
|
|
|
|
|
This process is known as integral promotion. If you look up the phrase "integral promotion" on the internet you'll find the information you're looking for (I think).
Steve
|
|
|
|
|
Well, everybody knows that program works with files very slow, so when i worked with windows API functions and MFC i just download whole file in the memory, and using the class CMemFile worked with it as with the stream.
Now i want to work with files using iostream classes (ifstream). But i don't know how to do the same.
Does any body know the way?
|
|
|
|
|
Does VC Support XML Documentation Comments?
Are there any good tools for generating documention from the source automatically?
Thanks for help
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
I don't think it's supported.
|
|
|
|
|
I have created a service with SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS attributes. This service will send some messages to a GUI application window via the Windows FindWindow() function. The service can find the GUI application window on Windows XP, but not on Windows 2000 and 2003 - the error obtained when calling the FindWindow() function is "Overlapped I/O operation is in progress (0x3e5)". However, on Windows 2000 and 2003, the GUI application manages to get the messages when the service was run as a program from the command prompt. I need to have the service working on Windows 2000 and 2003 as well. What is the root cause and is there any workaround for this? Thanks.
|
|
|
|
|
FFKONG wrote: ...via the Windows FindWindow() function.
Are you searching for a window's caption or its class?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
|
|
|
|
|
FFKONG wrote: . The service can find the GUI application window on Windows XP, but not on Windows 2000 and 2003 - the error obtained when calling the FindWindow() function is "Overlapped I/O operation is in progress (0x3e5)".
Some time if any windows get HUNG... and you try to find it handle, this may result in similiar error
"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
|
|
|
|
|
I want to write a program, while it runs, a window shows the hardware registers ax,bx.... just as the debugger does!
Is there a handy control to show registers?
|
|
|
|