|
hai,
We customized the default open dialog by deriving the class from
cfiledialog . These are the issues that we faced.
Issues:
1. How to handle the default messages in cfiledialog class?
2. In Win'2000 & above, we tried to change the listview style to
LVS_REPORT using Modifystyle method The style is changed, but the files and
column headers are not displayed.
3. In Win'98, how to remove the separator in toolbarwindow32.
Please give me the solution as early as possible.
sureshb
|
|
|
|
|
easiest way to remove separator is to write into the .rc file. open it find the separator and remove the line and you will see you are done. elase you can also modify setting styles.
cheers
Himanshu
|
|
|
|
|
I am writing win32 application.if the application throws any error .how can i handle it.
Any function to handle the error properly.
Thanks in advance.
|
|
|
|
|
u can use c++ native try catch macros or even MFC TRY/CATCH
|
|
|
|
|
Hi,
In my appication i want to check whether the the lbutton is kept pressed.So in my OnLbuttondown() function
i have GetQueueStatus(QS_MOUSEBUTTON || QS_MOUSE || QS_INPUT) it always returns 0 eventhough the left button is down..Can any one tell why is it so?
Regards
Neha
|
|
|
|
|
GetQueueStatus() tells you about the message queue, not the mouse itself. Call SetCapture() in your OnLButtonDown() and you'll get all the mouse messages (regardless of where the mouse moves to), so you'll know when the button is released.
--Mike--
When 900 years old you reach, look as good you will not. Hmm.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
When you document a class using the UML you can show the visibility of the various member functions and variables through the use of -, # and + to indicate private, protected and public visibility. However, when you use graphical methods to show aggregation or association what is the implied visibility here - private? How would you indicate any other type of visibility - through the use of stereotypes? If so, is there a standard method for doing this? This is something my UML books seem to gloss over.
Phil
|
|
|
|
|
http://www.omg.org/
OMG Unified Modeling Language Specification, Version 1.4 September 2001
3.43 Association End
3.43.2.9 visibility
"Specified by a visibility indicator (‘+’, ‘#’, ‘-’ or explicit
property name such as {public}) in front of the rolename. Specifies the
visibility of the association traversing in the direction toward the
given rolename. See Section 3.25, "Attribute," on page 3-41 for details
of visibility specification. Other properties can be specified for
association ends, but there is no graphical syntax for them. To specify
such properties, use the constraint syntax near the end of the
association path (a text string in braces). Examples of other properties
include mutability."
|
|
|
|
|
Excellent - thanks very much! Having the actual spec to hand is a good idea - thanks for the link.
Phil
|
|
|
|
|
Hi, i need to develop an application which has to be appear in the full screen size . Can any one pls help me how to do make a window or dialong screen size? Thank you very much in advance.
|
|
|
|
|
use the code:
int screenWidth = ::GetSystemMetrics(SM_CXSCREEN);
int screenHeight= ::GetSystemMetrics(SM_CYSCREEN);
::MoveWindow(hDlg,0,0,screenWidth-1,screenHeight-1,TRUE);
|
|
|
|
|
use CDialog::MapDialogRect () and set your parameters. Hope this works fine for you.
cheers
Himanshu
|
|
|
|
|
|
If you want to draw your dialog/window over the taskbar first you must change the workarea:
<br />
CRect rectWorkArea;<br />
<br />
rectWorkArea.left = 0;<br />
rectWorkArea.top = 0;<br />
rectWorkArea.right = ::GetSystemMetrics(SM_CXSCREEN);<br />
rectWorkArea.bottom = ::GetSystemMetrics(SM_CYSCREEN);<br />
<br />
SystemParametersInfo(SPI_SETWORKAREA,<br />
0,<br />
&rectWorkArea,<br />
SPIF_SENDCHANGE);<br />
and then you must resize your dioalog/window.
Remember to change the workarea when closing your app.
Hope this helps...
|
|
|
|
|
Thank you all. Thank you very much for the quick reply.
|
|
|
|
|
Is there a way to see if the default printer is printing in colour, grayscale or black and white?
well hell doesn't want you
and heaven is full.
Tom Waits
|
|
|
|
|
Take a look at this, might help:
PRINTER_INFO_2 has a pointer to DEVMODE structure. In DEVMODE is dmFields, value DM_COLOR is what you are looking for?
You can find more info about the structures from MSDN, or ask. I'm currently working on PRINTER_INFO_* and DRIVER_INFO_*.
------------------------------------------
Experience is the name every one gives to their mistakes.
-- Oscar Wilde
Experience is one thing you can't get for nothing.
-- Oscar Wilde
|
|
|
|
|
Thank you
well hell doesn't want you
and heaven is full.
Tom Waits
|
|
|
|
|
Hello,
I have some CWnd and I need to be able to handle their clicks.
I would like to know how to place a handler in the parent dialog in order to call the right function for each CWnd as it's done for the buttons...
Thank you in advance...
|
|
|
|
|
CWnd::OnLButtonDown ? Or didn't I get the point of your question ?
~RaGE();
|
|
|
|
|
Yes, I know this message, but how do I implement that message handler in the message_map and in the code of the parent dialog of each CWnd?
Thank you in advance...
|
|
|
|
|
After your post i cqn imagine you're writing plain Win32 and not MFC ... and i'm not that familiar with Win32 without MFC's. (if you are using MFC, post your code).
But :
The message (WM_LBUTTONCLICK) can surely be intercepted within the message pump of the parent window. Do check if your CWnds notifies something to their parents. When not, you can intercept the click in your CWnd, and then send a user msg to the parent one.
Repost your question if you don't find the answer, people will help you.
~RaGE();
|
|
|
|
|
How can I prevent user to choose date/time less than NOW in DateTImePicker control?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
handle the notify message DTN_USERSTRING,get the time user selected
compare it with now time, do your business.
|
|
|
|
|
Thanks for reply,but it seems that this notification is never called.Is there any trick for it?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|