|
|
Damn Microsoft! Stop hiding information in the documentation!
led mike
|
|
|
|
|
Phoenix101 wrote: i added a calendar to a form. but i'm having difficulty retrieving the dates.
Actually i dont know what functions is avalaible.
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello,
Any one knows a sample article OR a commercial component that allows file preview in an application. The preview should work for pictures, office documents, txt files.
Thank you.
Best Regards,
Dan.
|
|
|
|
|
can't you just ::ShellExecute() the file to preview so that it automatically opens the right application for it ?
|
|
|
|
|
Thank you for the reply.
I am intended to show the file preview into a MDI application.
Regards,
Dan.
|
|
|
|
|
micutzu wrote: I am intended to show the file preview into a MDI application.
then you'll have to code the preview behaviors yourself i believe...
|
|
|
|
|
Hi,
Once a menu option is selected I want to deactivate it
and if a new window is opened then I want to activate the menu option.
Any ideas what has to done.
Thanks
Prithaa
|
|
|
|
|
hey, can't you do yourself with CMenu[^] ?
i see an EnableMenuItem() there...
|
|
|
|
|
Hi,
Sorry to have bothered you .But I want to deactivate a menu option once it is used. I don't have CMenu object.I have a menu which belongs to IDR_MAINFRAME identifier.
Prithaa
|
|
|
|
|
you don't bother me ; but i have the impression that you ask questions here because you're too lazy to read the doc and learn a bit by yourself (i'm certainly wrong then).
also, i don't understand when you say "I have a menu which belongs to IDR_MAINFRAME identifier.". IDR_MAINFRAME is commonly the ID of the application's main icon in the resource file (.rc).
you say you don't have a CMenu. but you're using MFC, right ?
here's what you have to do then. in the event handler "click in the menu item", construct a temporary CMenu which reflects the menu clicked, identifies the item clicked, and then use the method indicated previously to deactivate it...
|
|
|
|
|
Hi,
CMenu* m = AfxGetMainWnd()->GetMenu();
CMenu* s = m->GetSubMenu(2);
s->EnableMenuItem(ID_VIEW_INCOMEVIEW, MF_BYCOMMAND |
MF_DISABLED | MF_GRAYED);
I above code did not disable the menu item ID_VIEW_INCOMEVIEW
I have written this code in the function which handles the ID ID_VIEW_INCOMEVIEW
so once the ID_VIEW_INCOMEVIEW is selected the next time it should be grayed.
so I posed the question
Any ideas
Prithaa
|
|
|
|
|
just a guess. have you tried to place a breakpoint in the debugger and see if the code is executed ?
|
|
|
|
|
Hi,
Yes the code is executed but there is no effect on the identifier ID.
Apparently it should immediately turn gray
Correct me if I am wrong
Thanks for your time
Prithaa
|
|
|
|
|
Hi,
i wrote a MDI application..i have given an extension .sam..i have serialized the data..saved the document on the disk..When i double click on the file..by default..i want it to be opened by my application..how to do it..?
thanks in before
James
|
|
|
|
|
You need to create a file association
Clickety[^]
|
|
|
|
|
please can you be more clear ,i did not understand it..
|
|
|
|
|
click on the link and read the article man !
it seems to be not the 1st time you have problems to follow given links
|
|
|
|
|
RockyJames wrote: When i double click on the file..by default..i want it to be opened by my application..how to do it..?
If the application was created by AppWizard, this should happen automatically. There should be a .reg file in your project. You should also have calls to EnableShellOpen() and RegisterShellFileTypes() in the app's InitInstance() method.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
I have to create a toolbar with buttons of different size. I was unable to do that so i am using a dialog bar for the purpose, can some help me to create this custom toolbar
Keyur Bhatnagar
|
|
|
|
|
I have an application with different child frames having different views, form view, graphview.., 4 such views, i have a dialog bar through which i want to activate these different views. Can some one help?
Keyur Bhatnagar
Software Engineer
|
|
|
|
|
I like to manage windows like this using a list (CPtrList, CTypedPtrList, etc.) so I always
know what windows are in existence. With only 4 views you can just keep 4 pointer variables
for the windows then use SetFocus or whatever to activate the appropriate window through its
pointer. Way easier than enumerating child windows to find the appropriate window to activate.
Mark
|
|
|
|
|
Hi,
Im using Borlan c++ builder, and want to know how can i direct all network traffic from/to my computer through a program which will be like a buffer.
I think its kind of a proxy.
i know how to use ClientSocket / ServerSocket but dont know how to force the traffic into going through such proxy , i tried changing default gateway address but it makes trouble.
good day.
Kobi.
|
|
|
|
|
Using "raw socket" is the way to see all incoming/outgoing traffic from your application. I'm not sure if you can manipulate the packets this way, but surely you can see every single packet, even non-data transfer stuff (when a connection is established or terminated)
|
|
|
|