|
I know what is the SDI stand for..
what iam asking that, how to do in dialog based.
i created one reg file. but
what should be write in reg file instead of document class does.
Regards,
Srinivas
|
|
|
|
|
It seems RegisterShellFileTypes() is to be used with SDI or MDI apps only.
|
|
|
|
|
what dll is relayed to the compile error?
|
|
|
|
|
The one that's missing from your project, i.e maybe IWshRuntimeLibrary!
|
|
|
|
|
IWshRuntimeLibrary works fine.
|
|
|
|
|
includeh10 wrote: IWshRuntimeLibrary works fine.
So are you saying that the title of this message "unresolved external symbol public: long __thiscall IWshRuntimeLibrary::IWshShortcut::Save(void)" has been fixed?
|
|
|
|
|
no,
IWshRuntimeLibrary::IWshShellPtr raw_CreateShortcut() works fine before the missed link LNK2001.
I think I need to import some dll file, but I don't know which one.
|
|
|
|
|
I have looked at MSDN but cannot find a direct reference to this library. I can only suggest you go back to your documentation and recheck the format of the Save() command.
|
|
|
|
|
Hi i m working in MFC dialog based application i want to resize the window according to screen resolution ( i m using win XP)
so that the application must be maximized
and the controls be resized accordingly on initialization
plz guide
uzmeed
|
|
|
|
|
I think you can use GetSystemMetrics() to get screen size and use SetWindoPos() API to change the size of your dialogbox.
|
|
|
|
|
HI
thanks for ur answer but the controls in the dialog box are not resizing accordingly (like edit box, buttons )
i hope i will get the solution also
uzmeed
|
|
|
|
|
I suggest you take a look at this section on CP[^]. It contains some classes that helps you positioning the controls of a window when it is resized.
|
|
|
|
|
|
uzmeed wrote:
so that the application must be maximized
Isn't this just a matter of calling ShowWindow(SW_MAXIMIZE) ?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
HI all,
I m working on SDI type application.
i have an image stip,in my application i have many dialogs and formview all are of diffrent size.
i want to use image strip as a dialog or form banner.
so i want to stretch it horizontally according to dialog or form size.
please tell me how can i do this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
How are you drawing the image and which control are you using?
The StretchBlt function can stretch an image.
|
|
|
|
|
Currently i m using a Text control as a banner,coz i want to display the dialog name at the center of banner.
can i also this for image,or use Picture control for image.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
You can only display text in a text control.
For an image, you will need a picture control.
|
|
|
|
|
I want to use both,text in the center of banner,and image at top upper side of dialog and form.
please tell me how can i do this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Why don't you simply place a text box in the middle and a picture control at the top of the dialog?
|
|
|
|
|
ok,now please tell me how can i stretch the image?
please if possible please explain me with example.
thanks.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Use LoadImage to load the image.
Here you can specify the width and height needed.
Associate a CStatic object to the picture control.
Now use CStatic::SetBitmap to show the bitmap.
|
|
|
|
|
everything is working fine now,only one problem is there,image not displayed at back of text control.
i m place text control in top center,and stretch the image from top-left to top-rite.
its stretch succussfully,but the back of text contol hide some portion of image please tell me now wat can i do?
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
What if you "printed" the text on the image so that they are rendered together (as one)?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
The text control has a property called Transparent .
Set this to True .
|
|
|
|