|
Michae_geffen wrote:
need some help on this.
What specifically are you asking for? Are you wanting to know how to end the msdev.exe process using Task Manager?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi..All
Please give me Hint How to capture right click on datagrid control...
Actully I want to set a popup menu at right click of Datagrid..please please give me any hint...
there is no event given to check right click...
Thanks..OK! Good Bye
---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
Add a handler for the MouseDown. In the parameter list, you will have the button wich is pressed (left=1 right=2).
|
|
|
|
|
Hi..Thanks for reply...
But there is no event for mouse down...this is not as other control in mfc..i'm not getting its full event list..as limited events are provided...
please help me...if u know
Thanks
---Sumit Kapoor---
|
|
|
|
|
Is it the Microsoft FlexGrid control you are using ?? If so there is a message for mousedown event.
If you are using something else, I cannot help you (I don't know all the things you can do with the control)
|
|
|
|
|
I'm using DataGrid Control..as I've to use data editing in grid that save automatically as user change that data...
so I think that I cann't do in flex grid...
Give me any idea..Dear..
Thanks again.I'm waiting for reply...Bye
---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
I'm not sure on what your working on, but maybe you can add the handler manually. (if you get an error just try to adapt the message handler a little. ==> copy/paste in your .h file) (not pretty, but if all else fails...)
If you can detect your mouse pressing in the control where your datagrid is in, maybe you can get the coördinates and try that way?
Just ideas, don't have the answer myself.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimmy Hendrix
|
|
|
|
|
Hi..Jimmy,
Thanks For Hint..I got my solution...
Have a Great Life..Bye
---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
Hi...cedric
Thanks For Hint..I got my solution...
Have a Great Life..Bye
---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
|
|
|
|
|
can someone please tell me how i can place a device independent bitmap into the clipboard without converting it to a device dependent bitmap?
|
|
|
|
|
There is a registered clipboard format CF_DIB , where the data is expected to be a BITMAPINFO struct and bitmap bits. GetDIBits will get this info from the DIB.
|
|
|
|
|
thank you for ur help johan.
regards,
kevin
|
|
|
|
|
Hi guys,
I am creating a CEdit derived class and I notice the overriden OnPaint() will not get called if I don't use Create() to create the control. If I draw a CEdit control on my dialog from Resource Editor and uses it by a pointer (assuming the CEdit derived class is CMyEdit:
pMyEdit = (CMyEdit *)GetDlgItem(IDC_MY_EDIT);
pMyEdit->SetFont(&editFont, TRUE);
pMyEdit->SetWindowText(_T("Testing"));
</code>
the OnPaint() is never called. But the following will do:
pMyEdit->Create(dwStyle, Rect, this, IDC_MY_EDIT);
</code>
Why is that? What does it mean when a control has been created from the resource editor, compared to created manually in the code?
Also, is there a member function for CEdit that can be overriden to let redraw of only the content (text) and background colour? Pretty much the same as DrawItem() for CListCtrl.
Thanks alot
|
|
|
|
|
The two member functions SetFont() and SetWindowText() send different messages to the edit window rather than WM_PAINT. For example, SetWindowText() sends WM_SETTEXT.
You can override OnDraw() in the edit view.
Kuphryn
|
|
|
|
|
Thanks kuphryn,
So it seems that for CEdit control not all display related operations will go through WM_PAINT (i.e. in MFC, OnPaint() ) at the end. I found it a bit odd: using different ways when they all lead to the CEdit control's display needing to be refreshed eventually.
I happened to find this post[^] which the guy asks exactly what I was looking. The control is the CEdit type, so I won't be able to overriding OnDraw() . I need something that has the appearance and functionalities of the CEdit and which then I can have/create a general function to customise its output(display) content (e.g. text, background colours), once for all.
Thanks.
|
|
|
|
|
It is possible to override OnDraw() in an edit view. What type of CEdit object is it?
Kuphryn
|
|
|
|
|
Hi Kuphryn,
I creat and use the CEdit control from the resource view, it's Edit Control by the name. I'd use a CEdit derived class with it, like in my original post. And I'm hoping to handle the text content painting operation myself. I looked on MSDN and I couldn't find possible OnDraw() for CEdit, can you kindly give me an example?
Thanks again.
|
|
|
|
|
Okay.
In that case, add a message handler to WM_PAINT in the CEdit subclass.
Kuphryn
|
|
|
|
|
Hi Kuphryn,
perhaps my original post wasn't not clear. That's exactly what I was doing in the first place, to add the WM_PAINT handler by overriding OnPaint() in the sub-class.
The problem I am having is that OnPaint() is never called if I use the sub-class directly with the control I created from the resource view. But if I explicitly create the control in run-time using Create() , OnPant() gets called no problem. You can look my first post for the example.
Thanks.
|
|
|
|
|
How to configure project, to run it not using new mfc(VS7) librarys? 'cos required mfc about 1 MB. And in static mode it's too big.
|
|
|
|
|
Are there samples for programmatically Sharing
Directories Creating and Creating new Users in Windows ?
How to do it better - using
ADSI, LDAP, or NETapi ?
Thanks you.
|
|
|
|
|
vgrigor1 wrote:
Are there samples for programmatically Sharing
Directories...
Do you mean NetShareAdd() ?
vgrigor1 wrote:
...and Creating new Users in Windows ?
How about NetUserAdd() ?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Thanks you,
I only begin to know this methods from NetApi.
But I need to use WMI instrumentation,
so I think WMI- to ADSI methods.
Can you help with useful sample and articles
for WMI and ADSI.
Best ones in MSDN(but I also read, or else.
Thanks you.
|
|
|
|
|
vgrigor1 wrote:
Can you help with useful sample and articles
for WMI...
Which WMI class(es) are you interested in?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Any C++ sdamples.
= common working methods.
Better about ADSI and user management.
|
|
|
|