|
Who's returning 20? a dialog or a thread?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Joaquín M López Muñoz wrote:
Who's returning 20? a dialog or a thread?
That is my dialog's thread.. it was returning 2 (IDCANCEL) a while back.. now all of a sudden it is returning 20.
Thanks,
Jim Beam
|
|
|
|
|
Nevermind.. I see that the thread can exit with a different value than the dialog.
Sorry,
Jim Beam
|
|
|
|
|
I was wonderng, is there any way to use MFC Controls in a CDHtmlDialog?
Currently, I have a rather attractive looking GUI which is a modified off of a design I got from am "open source web design" website, which I have modded up with some javascript/etc for the purposes of my program.
However, I would like to have a list control in the lower portion of my screen.
a screenshot can be found --> http://24.150.11.236/gui1.png
what I would like, is to have a MFC Control in where I have ---List Control would go here---
(the design I modified to use http://www.oswd.org/viewdesign.phtml?id=559&referer=%2Fbrowse.phtml%3Fcategory%3Dclean%26offset%3D35%26sort%3Dposted_date%26min_rating%3D3 )
Currently, the only thing I can think of doing, is making a CDHTMLView type class, and using splitters and having the top be the HTML, with just a straight up MFC List control in the bottom half, but I'd much rather find a way to imbed it into the page itself.
any ideas?
|
|
|
|
|
create an ActiveX control that contains a list ctrl. embed that on your page.
-c
A man usually falls in love with a woman who asks the kinds of questions he is able to answer.
Ronald Colman
Smaller Animals Software, Inc.
|
|
|
|
|
I'll have to double-check this when i get home, but doesn't CDHtmlDialog use both an old-style dialog template and a HTML dialog template? What happens when you put the list control on the normal template?
Developers that like shiny objects also dig case mods and scratch-and-sniff stickers. Klaus Probst, The Lounge
|
|
|
|
|
I got thinking of that after I posted this so I tried it, and the control displays ontop of the HTML, which gives me the desired effect I want.
Now just the matter of being able to move/re-size it as needed to keep it in position.
|
|
|
|
|
Hi!
I try to place or remove my MFC program's button in the system tray by using:
ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW);
or vice versa. When I place this statement in OnInitDialog, everything works fine. But when I place it somewhere else so that I can do the change "on runtime", nothing happens. Well, the Icon on the button in the system tray does vanish / reappear depending on the setting, and GetExStyle() shows that the settings have changed - but that's it. Any ideas, or do I have to give it up?
Thanks,
Martin
|
|
|
|
|
radix wrote:
I try to place or remove my MFC program's button in the system tray
You mean the taskbar icon?
Check out Nish's article "Some handy dialog box tricks" (or something like that )
I don't know where to find it and have no time to get the URL for ya, but search here on CP or perhaps Nish himself can tell ya!
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
Rickard Andersson wrote:
You mean the taskbar icon?
No - I meant the icon in the button on the taskbar;)
I checked Nish's article, but even though it's pretty good it didn't solve my problem, as he did the removing of the button in OnInitDialog...
Martin
|
|
|
|
|
Hi,
Is there a way to draw a bitmap in the background of a richedit?
I tried to override WM_ERASEBACKGROUND, but it does nothing.
I read that we can put the WS_EX_TRANSPARENT style and draw on the main window, but I want to do all the drawing in my derived CRichEditCtrl.
How can I do?
thanks,
John
|
|
|
|
|
Try WM_DRAWITEM
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
In fact I added the WS_EX_TRANSPARENT style to the richedit, and since the background is now transparent, I override WM_ERASEBKGD message to draw my bitmap.
The only problem I have is a flickering problem while sizing the window, because since the richedit is transparent, before I draw its background, the main dialog repaints itself under it.
Does anyone know how I can avoid it?
|
|
|
|
|
Has anyone out there created an OLE script for PCAnywhere? I would like to speak with you if possible. My number is: (909) 585-8445
|
|
|
|
|
:: Sadly, Barry starts receiving a plethora of phone calls from telemarketers. If only he hadn't posted his phone number in a public forum. Tisk Tisk ::
Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
<nobr>
Homepage : Feature Article : Sonork = 100.16311
|
|
|
|
|
Howdy all,
I've got a bit of a problem with TRACE(), mainly that I'm using it too fast for the buffer to be written to the debug output, leading to a few lines of output being dropped. I know that trace uses afxDump, which is a CDumpContext.
Is there anyway to assure that all TRACE output gets to the debug window, even at the cost of performance? The only thing I can think of is putting an afxDump.Flush(); before all TRACE statements. Which is a bit of an ugly solution.
I guess making a class derived from CDumpContext, and having it's operator<<() not return until the buffer is written out.
Anyone got any better sugestions?
TIA,
Pete
|
|
|
|
|
Can you just use OutputDebugString(...) directly? I think you might still see "dropped" output if you hit it hard enough, but that would be because of Visual Studio, not OutputDebugString(...).
Peace!
-=- James.
|
|
|
|
|
Would that actually make much difference? From my reading of MSDN: "Under the Windows environment, the output from the predefined afxDump object, conceptually similar to the cerr stream, is routed to the debugger via the Windows function OutputDebugString". I guess you're saying that CDumpContext is internally buffering the output, and that's buffer overflowing is the problem.
I think it's more likely that the stuff is being dropped after OutputDebugString(), on it's way to VS. I seem to remember someone mentioning this on CP a while back, when I first had the problem. I guess the Interprocess Communication (or whatever) isn't fast enough.
Thanks anyway,
Pete
|
|
|
|
|
I have a floating window that is ultimately derived from CControlBar. I have been trying to find a way to limit the minimum size that the user can re-size the window to using the mouse.
I have tried WM_GETMINMAXINFO, WM_SIZING, WM_WINDOWPOSCHANING etc. I have even tried intercept the WM_NCLBUTTONDOWN where the sizing operation should be started, but thats not catchable for some reason.
Does anybody know of any way to set the minimum size a dock window such of this can be re-sized down to? There is obviously some kind of default used by the system as it does have a minimum size, but I need to change what that minimum is.
Cheers, for any ideas or even better, solutions!
Roger Allen
Sonork 100.10016
If I'm not breathing, I'm either dead or holding my breath.
A fool jabbers, while a wise man listens. But is he so wise to listen to the fool?
|
|
|
|
|
When you register a HotKey using RegisterHotKey API function in a dialog based MFC app,
where do you capture it?
I tried CDialog::PreTranslateMessage.
Doesn't seem to be working
I used something like
if (pMsg->message == WM_HOTKEY)
{
switch (pMsg->wParam - 40000)
{
case 1:
{
CRect loRect;
this->GetWindowRect(&loRect);
CPoint loPoint= loRect.CenterPoint();
OnRButtonDown(0, loPoint);
break;
}
}
}
return CDialog::PreTranslateMessage(pMsg);
|
|
|
|
|
In VC++ 6 there was a menu command Add to Project >> components (or some thing like that) which was used to insert registered ActiveX controls or Visual Studio components.
We used the Visual Studio Components (or was it Visual C++ components) to add references to MAPI, MCI etc. libraries. In VC.net this command is gone!
How can we make references to MCI, MAPI like stuff now.
I mean simply using #include <mmsystem.h> doesn't work Please help
|
|
|
|
|
To add libraries to use in VC++.NET; in the solution explorer windows right click on the name of your project (under solution and before the file listing), then select properties. Then look under linker / input.
Seem like everything is a property in the new .NET Studio.
|
|
|
|
|
Thanks,
Will try this
|
|
|
|
|
could someone give me a pointer to where i might find an example of how to have a toolbar in my splitter window? I notice outlook has this type of look..
I have tried over-riding the CSplitterWnd::OnNcCreate() function, but it never gets called.. (still don't know how to over-ride a class function in .NET..)
any pointers?
-dz
|
|
|
|
|
I salute you all,
I am new on MFC and right now i am trying to make a Microsoft's paint again.
My question is; Toolbox used in that program is CReBar object or CToolBar object? If CToolBar object how can i make two column toolbar.
Thank you.
|
|
|
|