bug of MFC ActiveX Control?

i create a default MFC activex control by wizard,
i just check the windowlessActivate
 option, because i want to create a transparent control.
but when i use the control in vb, the form_keydown event will be triger
twice.
i recompile the control after comment the follow line:

dwFlags |= windowlessActivate;

all things is ok.
can someone confirm this "bug"?

-- 
ף���ˣ�


0
sPhinX
6/16/2005 8:23:25 AM
vc.mfc 33608 articles. 0 followers. Follow

3 Replies
545 Views

Similar Articles

[PageSpeed] 14

Maybe my english is so poor?
Or something else?

"sPhinX" <s5689412@163.com> д���ʼ�
news:eQ$NrxkcFHA.4040@TK2MSFTNGP14.phx.gbl...
> i create a default MFC activex control by wizard,
> i just check the windowlessActivate
>  option, because i want to create a transparent control.
> but when i use the control in vb, the form_keydown event will be triger
> twice.
> i recompile the control after comment the follow line:
>
> dwFlags |= windowlessActivate;
>
> all things is ok.
> can someone confirm this "bug"?
>
> -- 
> ף���ˣ�
>
>


0
sPhinX
6/17/2005 2:35:22 AM
sPhinX,

Perhaps you should try the question in a VB-forum?

Johan Rosengren
Abstrakt Mekanik AB

"sPhinX" <s5689412@163.com> skrev i meddelandet 
news:%23lN71TucFHA.584@TK2MSFTNGP15.phx.gbl...
> Maybe my english is so poor?
> Or something else?
>
> "sPhinX" <s5689412@163.com> д���ʼ�
> news:eQ$NrxkcFHA.4040@TK2MSFTNGP14.phx.gbl...
>> i create a default MFC activex control by wizard,
>> i just check the windowlessActivate
>>  option, because i want to create a transparent control.
>> but when i use the control in vb, the form_keydown event will be triger
>> twice.
>> i recompile the control after comment the follow line:
>>
>> dwFlags |= windowlessActivate;
>>
>> all things is ok.
>> can someone confirm this "bug"?
>>
>> -- 
>> ף���ˣ�
>>
>>
>
> 


0
6/18/2005 7:10:31 AM
THX

"Johan Rosengren" <johan.rosengren@telia.com> д���ʼ�
news:ONxBST9cFHA.1412@TK2MSFTNGP10.phx.gbl...
> sPhinX,
>
> Perhaps you should try the question in a VB-forum?
>
> Johan Rosengren
> Abstrakt Mekanik AB
>
> "sPhinX" <s5689412@163.com> skrev i meddelandet
> news:%23lN71TucFHA.584@TK2MSFTNGP15.phx.gbl...
> > Maybe my english is so poor?
> > Or something else?
> >
> > "sPhinX" <s5689412@163.com> д���ʼ�
> > news:eQ$NrxkcFHA.4040@TK2MSFTNGP14.phx.gbl...
> >> i create a default MFC activex control by wizard,
> >> i just check the windowlessActivate
> >>  option, because i want to create a transparent control.
> >> but when i use the control in vb, the form_keydown event will be triger
> >> twice.
> >> i recompile the control after comment the follow line:
> >>
> >> dwFlags |= windowlessActivate;
> >>
> >> all things is ok.
> >> can someone confirm this "bug"?
> >>
> >> -- 
> >> ף���ˣ�
> >>
> >>
> >
> >
>
>


0
sPhinX
6/18/2005 9:14:49 AM
Reply:

Similar Artilces:

namespaces and protected static members VC .NET bug?
I found bug when use namespaces in mfc application. When I wrote DECLARE_MESSAGE_MAP/BEGIN_MESSAGE_MAP in base (CDialog-derived) class A and in class B : public A (A and B in different namespaces). I narrowed this problem to simple peace of code: class A { protected: static int f; static int *p; public: A() {} ~A() {} }; int A::f = 1; int *A::p = NULL; namespace some { class A : public ::A { static int f; static int *p; public: A() {} ~A() {} }; int A::f = 2; int *A::p = &::A::f; // this line produces error } This code does not work, VC compiller said: error C2248...

CHM Control
Hi *.*! Does someone know a control with which i can control a CHM File? I want to recognize when someone click�s a button inside of a CHM File and then i want a IHTMLDocument2 to that HTML File, in which it happened. Is there a own *View Class for that purpose, like the CHtmlView? I�ve seen the Microsoft Help 2.0 Contents Control, but i haven�t found any Documentation about it yet :( Thanks for every help! Greetings -- Thomas ...

Logic Control Pol Display Config
Hi I am trying to LCPD configer pole display. When do all the steps to configer it takes over se 100 pinpad I mean pin pad goes offline. Any Help Check for Port Conflicts Look in Device Manager and see what port each has been assigned. "Ray" <Ray@discussions.microsoft.com> wrote in message news:33E61630-086B-488C-9842-035E073C228D@microsoft.com... > Hi I am trying to LCPD configer pole display. When do all the steps to > configer it takes over se 100 pinpad I mean pin pad goes offline. Any Help On Jan 22, 7:54=A0pm, Ray <R...@discussions.microsoft.com> wrot...

icon in gdi+ with mfc
Hello, I'm trying to draw an icon in a view. First I used the simple gdi and I did like this : pDC->DrawIcon(rect_icon.left, rect_icon.top, hIcon); and it was ok. Then I changed to used the gdi+ and I do like this : HICON hicon = myIcon; Bitmap bitmap(hicon); graphics->DrawImage(&bitmap, rct.GetRight() , rct.GetTop() , 32, 32); it draw the icon but the quality is really bad, it looks like the AntAliasingMode is on. I've tried to change the option like using SetSmoothingMode and SetPixelOffsetMode but it changed nothing, I can't have the same quality of image as I hav...

MFC Resource-Chaining Breaking in inproc ATL COM Servers
This is a multi-part message in MIME format. ------=_NextPart_000_001E_01C34AEF.7FD8CE20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable My problem is basically that resource-chaining appears sometimes to = break when I have an inproc MFC COM object (using ATL for the COM = stuff), which itself loads a 2nd inproc MFC COM object (also using ATL = for the COM stuff), and the first COM object is loaded by an MFC EXE. = The 2 DLL's and the EXE all link to the same DLL. All DLLs are coded to be MFC Extension DLL's. Below is a more d...

BUG? Outlook 2003 Not Responding
Hi all, I'm currently running Outlook 2003 (11.5608.5606) along with Active Sync 3.7 (Build 3083). I have the *Hide When Minimized* option set Outlook (thanks MS!) Since my upgrade, I've noticed the following behaviors: When my pocket-pc is disconnected/off: If I *minimize* Outlook, it hides itself in the system tray, and can (almost) always be restored. If I *close* Outlook closes, and can be restarted. When my pocket-pc is connected/on: If I *minimize* Outlook, it hides itself in the system tray, and can (almost) always be restored. However if I *close* Outlook Outlook minimizes ...

Transactions By Category Report Bug (Money 2005)
All, I'm experiencing a problem that I can't seem to work around and I hope somebody can help me out. I ran the transaction by category report and selected category A. I then went to the category setup screen and moved category A into B. I then went back to the transactions by category report and this time it won't open. Instead, it acts like it's going to open, but then immediately reverts back to the report menu screen. I'm pretty sure it's doing that because the last selected category the report ran was for category A and that category doesn't exist anymore...

OL2003 Signature Bug?
I have four pop-mail accounts in a single profile. I'll call the Accounts A, B, C, and D. "A" is the default account. In OL2003, you are able to create a different signature for each account. I have created "New Message" and "Reply-to/Forward Message" signatures for two of the accounts (A and C). When creating a new message, the signature for A appears correctly by default. If I switch the "send from" account to C, the signature for C replaces the signature for A. This is expected. If instead, I switch to accounts B or D, the signature...

Money 2006 net worth bug
I have noticed that one of my net worth over time favorite reports refuses to load. If I watch the CPU, it appears that $ is in an infinite loop with the load bouncing back and forth between 50 and 80%. But the really amusing thing is this: during the loop if I select "custom date", change either the start or stop date (move either to a new date, or just touch one - change a date and move it back) and select the APPLY button, the load will converge. If you select the OK button, the load will not converge. I have saved a net worth report that converges and attempted to reload...

controls in groupbox
Hi how can I group a set of controls under "group box" so that when I move the groupbox to a specific location on the main dialog, all the controls will move with it. Thanks I don't think there is a way to do this with resource editor. I typically just select them all when I want to move them. There is no concept of "grouping" like in a drawing program. In this case a "group box" is just a box. Tom "msnews.microsoft.com" <kwadowkwadow@yahoo.com> wrote in message news:eE5MDpzJGHA.2864@TK2MSFTNGP10.phx.gbl... > Hi > > ho...

Is this a bug or not?
I replied to an email that was archived in Outlook 2007. The 'sent' copy was placed in the archived sent folder instead of the one in my personal folders. Is this normal or a bug? Is there anyway that I configure responses to archived 'mails to be put in the current sent folder? TIA. Cheers, Guy ** Stress - the condition brought about by having to ** resist the temptation to beat the living daylights ** out of someone who richly deserves it. "Dr Teeth" wrote in message news:db8si3lpuejhnpm3luacpu2rkkaef66stt@4ax.com... > I replied to an email that was archiv...

Access 2007: bug? quick filter list is sometimes empty
Access 2007 has a great new feature which allows to easily filter by selecting different values from a drop down box on top of each column. However, sometimes the list of values simply is EMPTY in some columns. It seems that this has to do with the complexity of the underlying query. Does anyone know how to circumvent this? Or is it simply a bug? Kind regards Georg When the list of unique choices gets too big they don't show. You have some control over this office button/access options/current database/Filter lookup options (look at bottom of screen). It takes tim...

Bug in queue an activity association
When I see, for example, in my work queue, an email, and I make the following steps: 1. Open Email in New Window (from work item queue) 2. I delete email (not queue, just Email) 3. When I return to queue, even if I refresh, email is still there in my queue. 4. When I try to open email again from queue, I get error because record is not there anymore. Invistigatin further, I saw that ActivityParty and ActivityPointer tables doesn't have activityid, but queueitembase table has not deleted reference. This seems an error, and as workaround, I need to execute SQL directly (which btw is n...

BUGS BUGS BUGS
Dear Microsoft. I can understand programming bugs - you invent, you create, everyone makes mistakes etc etc. But how on earth can you have bugs in financial calculations? Take Finance 101 book. Replicate formulas. DON"T CHANGE THEM! I have already complained about mistakes in calculating bond yields in M2005 (has it been fixed?) where accrued interest is simply disregarded in calculations. Performance calculations in multiple currencies ARE ALL WRONG!!! here is example "buy" any asset in the account which is in a currency different to your base (say base is US$ and a...

_USE_MATH_DEFINES bug
There is an interesting problem with the _USE_MATH_DEFINES preprocessor symbol, which is used to get math constants defined. There are two different compilation models used for Release and Debug configurations, such that using _USE_MATH_DEFINES as it is supposed to be used in a Debug configuration compiles successfully, but using it in a Release configuration causes an undefined symbol error. For details see http://www.flounder.com/msdn_documentation_errors_and_omissions.htm#_USE_MATH_DEFINES joe Joseph M. Newcomer [MVP] email: newcomer@flounder.com Web: http://www.flounder.com MVP Tips...

theoretical MFC question
I've been debugging like a nutcase for a couple of hours trying to get the systemtime... I used SYSTEMTIME st; GetSystemTime(&st); --pretty straighforward.... I'm using unicode, and in building in RELEASE mode.... Release mode is not a problem in VB.net and I can set a watch on my variables and look inside them any time I want. So here I am in release mode tyring to check for correct data in my variables and get Nothing in them ....So I think that the code isnt working ... --I pull out my hair for a couple of hours and then decide to try debug mode...

Form Controls unavailable to query field expression
Hi All - This is a follow-up post to Subject: ‘Pass form parameters to query expression’ dated 1/3/08. Given: 1. Stand-alone Access 2003 mdb database. 2. Custom dialog form with two textboxes for user input (latitude & longitude). 3. The btnOK on the form sets Me.Visible = False, but does not close the form. 4. A stored Select query named based on an underlying table. 5. An expression in the stored query that uses fully qualified references to the latitude and longitude textbox controls on the form. The expression is: Delta: Abs(Abs([Latitude])-Abs(Forms!frmParameters!tbxLat))+Abs(A...

Could this be a bug?
We've been intergrated with QBPRO for about a month now and everythings been going well. However, when there's a Payout for the day it doesn't get deducted from the cash deposited. All the accounts are mapped correctly so it has nothing to do with it. Example: We take in $602 cash and have a $2 payout. The tender summary report is accurate, it says $602, the amount taken in. The Z report is accurate, it says we had a $2 payout and $600 to deposit, $602 minus the $2 payout. The problem is that $602 gets deposited by RMS into QB, therefore I have to go into QB and manually adj...

Getting a -1 Status in Disqualify Lead
I'm getting a -1 status when I try and disqualify a lead. When I click on the picklist I get an IE Script Error: 'firstChild.firstChild.children[...].offsetTop' is null or not an object My guess is that the picklist values were deleted or customized or something. Where can I edit the Disqualify - Status picklist values? Any ideas on what could be happening? Just a follow up. Hopefully it will help someone. Turns out somehow our XML file included duplicate contact sections. We exported the XML, sent it to Microsoft support, they fixed the XML file and sent it back. We imported i...

Pass control name to Word
Access 2003, XP I am on a subform that opens a document in MS Word and renames it. When Word is closing, I want to save the text that was entered in Word into a memo field in Access. I don't know how to pass the control name to MS Word and then save the text to that control. I don't want to use the mainform name so that the subform can be used in multiple main forms. ***Here's the control: frmMain!fsubPub1.Form!txtPub1 ***Here's the code on the command button on the subform: Private Sub cmdOpenPub1_Click() On Error GoTo Err_cmdOpenPub1_Click ...

Furtive Bug!
On different worksheets are (Forms) Buttons with the below macros assigned to them. "GoToUtilizationChart()" works perfectly, but "GoToPPVChart()" only brings up the "Metrics" worksheet and cursors to A1 - it does not select the chart. Chart names are confirmed correct. To test the problem, I copy/pasted the "Utilization" macro and substituted "PPV" and "3" in the code - still doesn't select the PPV chart. Can someone help me exterminate this bug?! Appreciate any help... Phil Sub GoToPPVChart() Sheets("Metr...

Bug in CFrameWnd::OnDDEExecute
I noticed that my app did not respond to a DDE msg (double-click on doc in Win Explorer), when the app was already running. I traced this problem to an error in the code in CFrameWnd::OnDDEExecute. This MFC routine stores a pointer to the DDE command string into "LPCTSTR lpsz" but passes a pointer to an empty string "TCHAR szCommand" to the app, forgetting to copy the string from lpsz into szCommand: TCHAR szCommand[_MAX_PATH * 2]; LPCTSTR lpsz = (LPCTSTR)GlobalLock(hData); ... ... //there should be a copy in here someplace??? ... ...

Using GDI+ from MFC C++ ???
All of the links that I have found say they are showing you how to use GDI+ from C++, by they actually show you how to use GDI+ from C, not C++. For example they show you how to modify the WinMain() function. There is no WinMain() function in my MFC code. I want to be able to load and save PNG files and BMP files. Since Windows now does this, I would prefer to use Windows instead of any third party library. >All of the links that I have found say they are showing you >how to use GDI+ from C++, by they actually show you how to >use GDI+ from C, not C++. For e...

optimization bug? CString bug? initialization bug?
I have a very interesting problem that I have not been able to explain to my satisfaction. I would greatly appreciate any help in the matter. Here is an outline of the code: void CMyClass::MyFunc() { CString szTemp; long nResult = GetResult(); switch (nResult) { case ... case ... long otherResult = GetOtherResult(); switch (otherResult) { case ... case ... szTemp = GetString(); ...use szTemp... break; } break; } } Th...

WMP12 Bug with Large Libraries (confirmed and reproducable)
I have been working with a few of the guys over at we got served and have discovered a live bug in the windows media player version as shipped with windows 7 ultimate x86 I have a home server (WHS) and a media center (Win7). the home server runs PP3 and has 42,000 mp3's in the music share. All mp3s are well tagged and have embedded album art. when windows media player starts scanning the folder in order to import music it gets to 32750 (integer maximum value) and hangs leaving the graphical elements of media player corrupted. this stays like this for approx 5 minutes...