|
Hello many people! Welcome to my question. How do my setup program copy Outlook stationary to a new persons computer? I have the HTML and GIF documents but where it I copy them to and what registry editing must be made?
Thank you and many delights for you help me. Please apologise for my bad English as my first language is not yours. Bablefish helps me.
Good bye,
Richard.
|
|
|
|
|
My app displays a modal dialog using the dialog box macro DialogBox(...), and I can't figure out how to make the dialog appear on the taskbar. Is that possible?
I normally wouldn't ask for help, but almost every programming site I go to has tutorials on just MFC programming, not straight Win32. Some day I'll take the plunge and start using MFC, but I'm trying to delay that as long as I can .
|
|
|
|
|
I think... If it's a child of the desktop window ( GetDesktopWindow() ) it'll appear on the task bar. There's prolly another way too, but that's the one i know of.
|
|
|
|
|
|
try fprintf(f,"%c",'\0')
>>>-----> MikeO
|
|
|
|
|
Marc M. wrote:
char String1[11] = "My String 1";
fprintf(f, "%s", String1);
I'm surprised that code hasn't crashed. Your char arrays are not declared right -- "My String 1" has 12 characters, not 11. Declare them either with the right length, or just leave out the size and the compiler will figure it out.
char String1[12] = "My String 1";
char String2[] = "My String 2";
--Mike--
http://home.inreach.com/mdunn/
Help! Help! I'm being repressed!!
your with and
Sonork - 100.10414 AcidHelm
|
|
|
|
|
But you have to respect Mike's attention to detail and offering more than what you asked for.
Good catch. Shows your experience with code reviews Mike.
~Cliff
|
|
|
|
|
You get more than you pay for with Codeproject.com!!
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
Geez. That's kinda a snotty attitude to take. You post a question - someone responds and offers help and you turn around with a "that's not what I asked for"? You gotta be kidding.
|
|
|
|
|
Sirs,
I have problems with tooltips in my VC editor. That is to say I have problems with some type of them and not always.
To be more concrete: e.g. a win32 API or an MFC function's prototype should be shown in tooltip when I type them in the editor.
Unfortunately it does not always work.
I noticed that this problem is confined to some of my projects, while in the others tooltips work just fine.
I cannot figure out what the problem might be.
All options of Tools/Options/Editor/Statement Completion are checked.
Could somebody please help?
Bunburry
The only thing that the artist cannot see is the one that the public can see: the obvious...
|
|
|
|
|
Bunburry wrote:
Sirs,
There's chicks here as well...
I dunno what your problem is, but I recommend you go to www.wholetomato.com and download Visual Assist - tooltips on steroids and a whole lot more.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
First, sorry I don't have my source with me (i'm at work), but its typical source so maybe you don't need to see it.
Where I'm at:
I've created an addon application for another program. It adds menu's using createmenu/createpopupmenu/appendmenu/insertmenu, and then I have them subclassed the usual way.
The problem is, the program I've added the menu too, only has top level menu's, no submenu's. I've added a submenu. In the subclass routine, I have my cases's setup watching for WM_COMMAND and matching them to the menuid's.
No matter what I've tried, I cant get any response from the submenu's I've added. All the top level menu's work perfectly.
I hear this is a common problem when adding menu's to application's using thunderforms that were initially designed with top level menus only (no branches), but I'm sure there is a way around it.
Anyone have any suggestions?
|
|
|
|
|
Is it possible to use a dialog box to diisplay a CSrollView?
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Why not use and SDI CFormView?
|
|
|
|
|
Because I'm in the middle of writing a dialog based app that doesn't have doc/view support, and it would not be efficient to start over.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
Well, there's a couple of problems with the approach he's taken, but it might be a starting point. I saw that article earlier but ignored it for the same reason.
An alternative method I've already tried is setting a static control on a dialog box and trying to draw to it instead. It's been problematic, so I guess I'll try that article.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John, you can see in the MSJ January 2000. I that isue paul Dilascia, shown how implement a CHTMLView in a Dialog Box, if you read that article you will can implement a CView Class in a Dialog.
I hope to Help...
Today is Friday!!!! Free for all CP!!!!
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Yes, I have used a treecontrol, and subclassed it to my own view derived from CScrollView, By using a treecontrol, you don't have to worry about not getting all mouse actions and things like that.
So yes it can be done!
|
|
|
|
|
Can you possibly provide some sample code?
I tried the article mentioned above and it asserts in wincore.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi John,
In an app I am currently working on which is MDI, I wanted each MDI View to be a CFormView with a dialog resource. The problem I had was making the window look like a dialog box. I was trying to port the look and functionality of an Access form into an MDI arcitecture.
I had to modify the CChildFrame and the main CFormView derived classes.
If this sounds like what your looking for I can send you the sample code.
Giles
|
|
|
|
|
Actually, all I need is a place to draw some stuff (using GDI calls and such). It doesn't have to scroll, it doesn't need to respond to mouse clicks, it doesn't even need to open a document. I think I'll try just creating a CWnd and attaching it to the dialog somehow.
I figured using a CView would be easier, but it's been a pain in the ass.
Let's also not forget that this is a dialog-based app where I did not elect to support doc/view.
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I wrote ActiveX with ATL,I add background color
property when I insert control into project,How can I add
property sheet,for this stock property?
|
|
|
|
|
Try adding
PROP_ENTRY("BackColor", DISPID_BACKCOLOR, CLSID_StockColorPage)
in between your BEGIN_PROP_MAP and END_PROP_MAP in your header file.
HTH
Jignesh
|
|
|
|
|
I have several applications that use custom CWnd controls. And for some reason, when I use GetDC() and ReleaseDC() while handling a WM_PAINT message, as soon as OnPaint() is done, it gets called again. This craziness seems to go away when I use a local CPaintDC.
Trouble is, I'm now trying to fix an old app that uses a seperate thread to handle the drawing. OnPaint() puts a custom PAINT message in a queue for the thread, which in turn uses GetDC() on a hWnd (GetSafeHwnd()). I can't seem to construct a CPaintDC without MFC ASSERTing that the CWnd is invalid.
void OnPaint() {
queue.PushEvent(PAINT, currentRange);
}
int ThreadProc(CWnd *pWnd) {
while(1) {
t = queue.PopEvent();
switch(t) {
case PAINT:
HWND hWnd = pWnd->GetSafeHwnd();
HDC hDC = GetDC(hWnd);
CDC *pDC = CDC::FromHandle(hDC);
...
ReleaseDC(hWnd, hDC);
break;
...
}
}
}
When I try CPaintDC dc(pWnd), it ASSERTs.
So...
Q1) Has anyone else ever seen the never-ending stream of WM_PAINT messages? And if so, any idea how to prevent it?
Q2) Can anyone come up with a nice way of creating a CPaintDC from a CWnd inside a thread? I can't easily (and safely) create the DC outside the thread and pass it in.
J
|
|
|
|