|
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?
|
|
|
|
|
This is going to be a program that will depend on your hardware, but I guess you are aware of that.
The simplest way IMO is to use an __asm section and assign the register values to local variables, that you then display.
~RaGE();
|
|
|
|
|
Hi
I am creating a new ActiveX from an existing ActiveX. I just creted class id using GUIDGen.exe and compile the project. But the new control is not downloading to machine where the old control present.
Do we need to change the class name of ActiveX too?
How to chnage the class name? There are many existence of class name in the project? Please advise..
|
|
|
|
|
Hi!
Within a tab control, I am creating a window that has multiple windows embeded in it. The trouble is that I have never figured out how to set bounds on a given window so that it only takes up a piece of the window it is embedded in. I have tried using a frame, but I could not get it to work. If I could just see the code of a sample application where within a given window there were multiple windows inside it, where the bounds of the internal windows were set at compile time, I think I would know how to immitate it.
Thanks for your consideration in this matter.
Sean Zlatnik
|
|
|
|
|
I guess the better question to ask is how to calculate what the coordinates should be. It is nice when you can build it as a resource in the resource editor, but you can't do that with dialogs contained inside a tab control. Is there a better way than 'guess and check'?
Thanks,
Sean
|
|
|
|
|
Hi, I want to fire all the Html element events taking place in "Internet Explorer" in my VC++ application Use the following code fragment to obtain an event handler
//get IHTMLSelectElement
IHTMLSelectElement* pselectelement=NULL;
spSelectElement->QueryInterface( IID_IHTMLSelectElement,(void **) pselectelement);
//Retrieves a pointer to the event handler function associated with the
//onchange event on the SELECT element, but i can't get it
VARIANT * p=NULL;
pselectelement->get_onchange(p);
HTMLSelectElementEvents* pselectelementevent=NULL;
pselectelement->QueryInterface( DIID_HTMLSelectElementEvents,(void **) &pselectelementevent);
//get_onevent function can be found in msdn but can't seek in headfile MSHTML.H
((IHTMLElement*)pselectelement)->get_onEvent( &_variant_t(pDisp) );
if (pselectelementevent)
// fire event
HRESULT hr=_com_dispatch_method(pselectelementevent,
0x3e9, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
help me ! sos
TKS
VICTOR.ZOU
-- modified at 3:15 Tuesday 21st February, 2006
|
|
|
|