|
According to Microsofts IHTMLWindow2::blur Method documentation
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/ifaces/window2/blur.asp
blur causes losing focus by web browser. Instead of chasing messages with spy, maybe better approach is to write an even handler for html window::onblur event and SetFocus back to web browser and possibly activate your app...
As to the ways ActiveX control can negotiate with container -- they are not necessary OLE messages. I'm absolutely sure that MSFTs WebBrowser control talking to your frame window through Win32 messages too in addition to Ole ClientSite mechanism... At least that what MSFT allowes to do for themselves, while publishing rules for others...
Regards...
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
I've dug into wrong way
As you said the right logic is even if my main window takes some actions not expected it must receive some messages in win32 way! So spy++ always rules I will remember that till the water runs dry;P
Interface event sink is another way. But no parameter to cancel it and too much code to write. Only mfc involved in that's simple and clean.
Sing when we're programming.
|
|
|
|
|
Are you sure you know what you are talking about?
|
|
|
|
|
I have this overridden inside CDoc derived class...and I return FALSE so a default MFC document/view doesn't load...
However inside this function I also create a folder selection dialog which is displayed automagically whenever the application is loaded into memory...
How can I prevent the framework from calling OnNewDocument() when the app first loads???
Thanks
How do I print my voice mail?
|
|
|
|
|
Insert the following line into your InitInstance():
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;<br />
if (!ProcessShellCommand(cmdInfo))<br />
return FALSE;<br />
by default it is set to:
CCommandLineInfo::FileNew
|
|
|
|
|
Wicked...thank you
Cheers
How do I print my voice mail?
|
|
|
|
|
When I draw a diamond or any shape for that matter using MFC's or SDK HDC shapes will always have the jaggies...can I use GDI+ to anti-alias images before display???
If so how...? I have read a few artidcles on GDI+ on here and can't find anything about that
Thanks
How do I print my voice mail?
|
|
|
|
|
Actually, I got this from C#.
g.SetSmoothingMode(SmoothingModeAntiAlias );
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Hmmm...thanks...i'll look into it and hopefully find something about using this with VC++ 6.0
How do I print my voice mail?
|
|
|
|
|
What message can be received by window when shut down or restart a pc ?
Thanks.
Shall we be friend?
|
|
|
|
|
WM_CLOSE
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
But according to the MSDN --->
System Shutdown Messages
The following messages are used with system shutdown.
WM_ENDSESSION
WM_QUERYENDSESSION
Thanks
Jitendra
|
|
|
|
|
but WM_QUERYENDSESSION is not sent by the system properly, but by an application that ask the system to shut down. then, the OS emits WM_ENDSESSION .
TOXCCT >>> GEII power
|
|
|
|
|
toxcct wrote:
but WM_QUERYENDSESSION is not sent by the system properly, but by an application...
The WM_QUERYENDSESSION message is definitely sent by the system in response to an application calling ExitWindows() or ExitWindowsEx() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
DavidCrow wrote:
sent by the system in response to an application calling ExitWindows()
yes, ok, but that is the same in the fact.
TOXCCT >>> GEII power
|
|
|
|
|
An application calls ExitWindows[Ex]() , and Windows responds by sending out a WM_QUERYENDSESSION message. How is that the same? The application did not send the message, Windows did.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
damn it, you don't understand, or you don't want to understand ???????
it is the same... of course they are not the same messages.
i say it is the same to what i tried to explain before. WM_QUERYENDSESSION is sent because an application asked to shut down, instead that WM_ENDSESSION is sent when windows shuts off by itself.
TOXCCT >>> GEII power
|
|
|
|
|
toxcct wrote:
you don't understand...
I understand fully, that is why I was correcting you.
In your reply to Jitendra, you stated that, "...WM_QUERYENDSESSION is not sent by the system properly, but by an application..." Are you now denying this, or are you confused by what you stated versus what you actually meant?
toxcct wrote:
WM_QUERYENDSESSION is sent because an application asked to shut down...
This much is factual, but only if you qualify it by adding that Windows sends the message, not the application. The application "asked to shut down" by calling ExitWindows[Ex]() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
yes, we're ok now. i explain myself wrongly in my first post.
TOXCCT >>> GEII power
|
|
|
|
|
I get following error when compiling my very first VC60 program:
"--------------------Configuration: Titan - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
audio.c
k:\titan\source\audio.c(77) : fatal error C1010: unexpected end of file while looking for precompiled header directive
"
Obviously the compiler is looking for something in my 'stdafx.sbr' file that I am not providing.
Does anybody know how to resolve this simple hangup?
Thanks!
John Alderman
|
|
|
|
|
Maybe you should rename you file form .c to .cpp
|
|
|
|
|
Go to your project settings and look for settings on precompiled headers. 'use precompiled headers' will be checked, instead check 'automatic use of precompiled headers using file" and make sure the file is stdafx.h. Basically, if you use precompiled headers, all your .c and .cpp files need to include stdafx.h before any other include. When you import a file from a project that does not use them ( which is what I assume you've done ), you need to either add the line or change the setting.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Hi,
[1] What is the best way to read avi files?
I have a class using the raw AVI* functions but it does not seem to be able to
load all formats. Some can't find an appropriate decompressor even though one is installed and the video plays ok with media player. I assume that DirectShow is implemented from those core AVI functions so is my assumption correct that reading/writing all avi formats should work without using DIrectShow?
[2] What is the best way of being able to open arbitray mpegs or avis and obtaining the
buffer?
[3]
Also In an SDI app how would I change the CFileDlg before OnOpenDcoument() to restrict the display formats. e.g. just mpgs or avis.
Thanks
axe
|
|
|
|
|
On MSDN, Microsoft says "Microsoft® Video for Windows® (VFW) provides functions that enable an application to process video data. VFW was introduced in 16-bit Windows. Many of its features have been superseded by features in DirectX."
From the DirectX SDK You'll want to check out the DMO Sample. It takes MPEG-1 video packets as input and produces two output streams. You'll also want to take a look at the PlayWnd Sample, which is a simple media player.
axid3j1al wrote:
Also In an SDI app how would I change the CFileDlg before OnOpenDcoument() to restrict the display formats. e.g. just mpgs or avis.
You don't need to do much work with OnOpenDocument If you change the document string in the resources. See <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_CSingleDocTemplate.3a3a.CSingleDocTemplate.asp?frame=true" target="_blank">CSingleDocTemplate::CSingleDocTemplate</a> and <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_cdoctemplate.3a3a.getdocstring.asp" target="_blank">CDocTemplate::GetDocString</a> .
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
How do I convert a STL basic_string to CString?
How do I print my voice mail?
|
|
|
|