|
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
|
|
|
|
|
hi,
Use dateTimePicker1.MinDate = new DateTime(1985, 6, 20);
The minimum date and time that can be selected in the control. The default is 1/1/1753 00:00:00.I haven't used it, but i guess it works..
cheers
Himanshu
|
|
|
|
|
xxhimanshu wrote:
dateTimePicker1.MinDate
Thats .NET way.It does not exist in MFC.Does 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
|
|
|
|
|
:-Osorry!!! i guess that doesn't exist in MFC. What my guess is you just write into onclick or mouseover event some code that invalidates when user wants to change the date ec. to some previous date.That should do what you want to.
cheers..
Himanshu
|
|
|
|
|
Hi all,
I want to insert a tabbed dialog on my menu's option but can't find anything good. Don't know how to use property sheets either.Can anyone please help..
thanks in advance..
Himanshu
|
|
|
|
|
How to use property sheets:
NOTE:
the previous message is a llitle weird (at the beggining because it is pasted from a question that I've answered some time ago...) here's the normal one...
-> First of all excuse my English
You must create the property sheet class:
1. Menu insert -> new class.
2. Type the new class name.
3. Select the CPropertySheet base class.
Now you have the property sheet created, but this won't have any tab (property page).
To create pages (PropertyPages) you will have to:
1. Create a dialog resource (a normal dialog)
2. in the dialog properties select:
2.1. (Tab styles) Style = child
2.2. (Tab styles) Border = thin
2.3. (Tab styles) checked Title Bar (the other options in this tab must be unchecked)
3. Doubleclick the dialog (in order to create a new class for it)
3.1. Write the new name of the class.
3.2. Select the CPropertyPage base class.
Now you have created a property page and a property sheet, you can create all the property pages you want. (Surely there will be a limit of property pages, I don’t know it…)
Now you have to insert the property pages to the property sheet.
In order to do that:
Make sure that you have included the header files of the PropertyPages in the header file of the Property Sheet:
<br />
#if !defined(AFX_PSPARAMETRITZACIONS_H__8CB4FA88_5A89_4479_A479_4734680B1775__INCLUDED_)<br />
#define AFX_PSPARAMETRITZACIONS_H__8CB4FA88_5A89_4479_A479_4734680B1775__INCLUDED_<br />
<br />
#if _MSC_VER > 1000<br />
#pragma once<br />
#endif // _MSC_VER > 1000<br />
<br />
#include "PPDlgParametritzacions.h" <br />
…<br />
And you should add a PropertyPage variable for each PropertyPage that you want to add:
CPropertyPageClassThatYouWillHaveAdded m_CPPCTYHA;
In the constructor of the Property sheet class you should add the PropertyPages:
this->AddPage(&m_CPPCTYHA);
And that’s all…
(Just kidding…)
You will need to call the Property sheet:
In order to do that:
You should include the CMyPropertySheet class (header file) to the header file of from where you want to include the property sheet call.
Add a variable of the type CMyPropertySheet in the same class (dialog or xxx) from where you want to call the property sheet:
CMyPropertySheet m_MyPropertySheet;
(In order to try it you can create a CButton in a dialog) and in its click event you can call
m_MyPropertySheet.DoModal();
Hope this helps...
Its possible that I have done a typing error or that I have missed something, if this don't works, email me (or try it by yourself...).
|
|
|
|
|
Have a look in the MSDN, it is _really_ easy to use PropertyPage and PropertySheet, but _long_ to explain in a post
~RaGE();
|
|
|
|
|
I have get a Torica TSK-U CMOS fingerprint reader.
And I would like to capture fingerprint image from the reader.
Any method to get thw image?
I just have the .inf and .sys for the driver only.
What do I need do??
Million Thanks!!!!!!
|
|
|
|