|
i want to save the date from Date time picker to a record.
what can i do for that
|
|
|
|
|
SYSTEMTIME st;<br />
SendMessage(hwndDateTime,DTM_GETSYSTEMTIME,(WPARAM)0,(LPARAM)(LPSYSTEMTIME)&st);
then you have to figure out what format your "record" uses for storing date/time and convert to that and store it
|
|
|
|
|
Hi all,
I have created the junction point by creating mountpoint in empty NTFS
folder option from ComputerManagement--->DiskManagement , right clicking on the
volume.
it goes like this: my destination volume drive is g: and source is C:\UNC
I am running windows service which removes the destination volume (that is the
removable drive) using DeleteVolumeMountPoint() , but it only ejects the
destination drive (ie removable drive) , the c:\unc is still available and can
be accessible. Can any body help me out how to delete that also. If I select the
"Eject" option by selecting removable drive (from
ComputerManagement--->DiskManagement ) then c:\unc also becomes unavailable....
Thnx in advance
LiveShell
|
|
|
|
|
How to know programmatically that Media file having audio content or not same as video content or not.
Thank you,
Hiren Thakkar.
|
|
|
|
|
If you're starting out without any idea about the file, no file extension for example, then you'd have to parse the headers on the front of the file using a parser/recognizer capable of distinguishing different formats. The detailed format information of the format used will then contain information like what is in the file, details of audio and video streams, encoding, compression, encryption, authorship etc. There is no single standard format for media files or their headers so you need to know what you're looking for. You occasionally come across files that are completely raw, i.e. no header at all and you can't use then unless you happen to know the exact format, eihter by the association of the file with a particular application or by its extension. Most files though will have a valid header and many header layouts will be publically available.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
I have an MFC app which creates toolbar using sectoolbarmgr. We have written a wrapper over secframewnd which to be used as frame.
My problem is - the toolbar looks absolutely fine when seen in debug build. But in Release build, each toolbar button has an ugly green/blue colored border around it.
Is there any way to suppress this un-needed toolbar button border ?
Thanks
Cage
|
|
|
|
|
im using the list control for displaying certain information.When i click on any rows in a particular column i want the text to be fetched.
Can anybody help me out
Thanks in Advance
|
|
|
|
|
did you try GetDlgItemText(IDC_LIST1);
|
|
|
|
|
thanks for your reply.
I tried like the
1.with the click function of the list control i tried the way you told
GetDlgItemText(IDC_LIST1,variable);
but the value returned to the variable is LIST1.
is there any events for capturing the text in list control.like i saw one for capturing the entire row if i click on it
|
|
|
|
|
Deepu Antony wrote: GetDlgItemText(IDC_LIST1,variable);
CListBox::GetText
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok wrote: CListBox::GetText
For a list control?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote:
ThatsAlok wrote:
CListBox::GetText
For a list control?
Sorry my Mistake, it should be CListCtrl::GetItemText
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Of course I think you show that your answer is CListBox.;P
ThatsAlok wrote: CListBox::GetText
|
|
|
|
|
Well, because you mention columns, presumably you are dealing with a ListViewControl and not a ListBox, so try something like this:
TCHAR pszText[_MAX_PATH];<br />
LVITEM lvi = { 0 };<br />
lvi.mask = LVIF_TEXT;<br />
lvi.pszText = pszText;<br />
lvi.cchTextMax = _MAX_PATH;<br />
lvi.iItem = 0;
lvi.iSubItem = 0;
SendMessage(hwndList,LVM_GETITEM,(WPARAM)0,(LPARAM)(LPLVITEM)&lvi);
lvi.pszText may not be still pointing to pszText upon return.
|
|
|
|
|
Roger Broomfield wrote: ...you are dealing with a ListViewControl and not a ListBox...
Wasn't that much obvious from the subject?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Well yes I thought it was, but I also thought I had better state the obvious, just in case the other 3 were right.
|
|
|
|
|
Thanks a lot .. i was able to solve it....
|
|
|
|
|
Thanks for your reply ..
but im getting an error
error C2065: 'hWndList' : undeclared identifier
How do I have to declare this?
Thanks.
|
|
|
|
|
If you are using MFC, you should have a CListBox member variable associated with the listbox control. Use its GetItem() method instead.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I have a csplitterWnd based class with 2 view and one view contains cscrollview along with some other controls. My problem is when i set the scroll sizes of the scrollview i sometimes get an unnecessary vertical scroll bar. This scrollbar disappears as soon as i move the split. Remember the splitter view is not direct child of the csplitterwnd class. But i still tried to call the recalclayout of the csplitterwnd when ever i change the scrollsizes of the cscrollview. But the scrollbar is still there. Any suggestions please!
|
|
|
|
|
Take a look into ResizeToFit or try to SetScrollSizes with a lower value.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
how to create a window which will reside inside MDI frame other than views..
for example: can i create a dialog inside MDI Frame window , which will reside in it.PLz help
|
|
|
|
|
a modeless dialog will do that. Look for CDialog::Create()
Greetings from Germany
|
|
|
|
|
Thanks for replyin..
i have tried it ... but when i move my MDI frame it doesn't move along with it..
it gets out of MDI frame area...
i want it inside the frame..
|
|
|
|
|
A dialog box will have a different frame. Better create new Window being child of the active one.
Diference between Modal and NonModal is if you are allowed to make another things while the dialog is active, but has nothing to do with your question.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|