|
You can use of SetBitmap with a new handle to bitmap.
|
|
|
|
|
Hi,
I have added functionality to add history in my list control by using the following function.
BOOL GetHistory(CStringList & list)
{
STATURL url;
CString strUrl;
ULONG uFetched;
IUrlHistoryStg2Ptr history;
IEnumSTATURLPtr enumPtr;
if(FAILED(CoCreateInstance(CLSID_CUrlHistory,
NULL,
CLSCTX_INPROC_SERVER,
IID_IUrlHistoryStg2,
( void**)&history)))
{
return false ;
}
if(FAILED(history->EnumUrls(&enumPtr)))
return false;
while(SUCCEEDED(enumPtr->Next(1,&url,&uFetched)))
{
if(uFetched==0)
break;
strUrl = url.pwcsUrl;
list.AddTail(strUrl);
}
return true;
}
Only IE history is added to my list control.How can i add history of other browsers also.
|
|
|
|
|
revanth1985 wrote: How can i add history of other browsers also.
Do they store history data in the C:\Documents and Settings\<user>\Local Settings\History folder?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
ya.only IE histroy is located in the above location.But if i browse using other browsers such as mozilla,opera etc,i am not getting the history.I want to load history of all the browsers in a list control.How can i go further?
|
|
|
|
|
revanth1985 wrote: But if i browse using other browsers such as mozilla,opera etc,i am not getting the history.
So where do they store their history information?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Actually i am not able to trace the path in which thay store their history information.
|
|
|
|
|
Why? Just visit some benign site that IE has not been used for, and then search for filenames, file contents, and registry entries for part of the URL.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I created a Dialog based application "Sample" using VC 6.0 using the Wizard.
When I opened the resource file namely Sample.rc using a text editor,
I found
IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 235, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU.
What is the significance of the word DISCARDABLE above.
I removed the word and on compiling and running the application, could not
find any noticable change in any style.
MSDN was of no much help either.
|
|
|
|
|
Marimuthu.pesit wrote: MSDN was of no much help either
You simply have to refine your search...
http://msdn2.microsoft.com/en-us/library/Aa380908.aspx[^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Man, I miss 16-bit Windows
Mark Salsbery
Microsoft MVP - Visual C++
"Thanks,I overlooked the docs."
|
|
|
|
|
Marimuthu.pesit wrote: What is the significance of the word DISCARDABLE above.
It tells Windows that IDD_ABOUTBOX can be discarded (i.e., swapped to disk) if it needs room for something else.
Marimuthu.pesit wrote: I removed the word and on compiling and running the application, could not
find any noticable change in any style.
It's not something that you'd notice.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Where can i find ttool.exe for Visual Studio 2005
S.Yamini
|
|
|
|
|
I am creating a login dialog of a system.I create a picture for the background.My requirement is to add controls top on that image.So how can i do if.If you can pls give me related links.
bhw
|
|
|
|
|
I use a bitmap for a background on my login dialogs.
I just draw it on the dialog window in response to WM_ERASEBKGND.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
"Thanks,I overlooked the docs."
|
|
|
|
|
Did you use of WM_ERASEBKGND for show images and also if you search on the codeproject you can find articles about your problem.
|
|
|
|
|
hi sir,
i have mp3,avi and picture files . i have to show that files into my application like preview so..
i designed one dialog based application. after that i added the media player component into my dialog box. and created one object for that component.then how can i run that component .. means what the functions to run the media player .how to pass the file to media player component.
Regards,
Srinivas
|
|
|
|
|
vasu_sri wrote: i have mp3,avi and picture files . i have to show that files into my application like preview so..
Your requirement can be met by using Windows Media Player component for playing audio/video files. Follow the below steps:
Create a dialog box application.
Select Project->Add to Project->Components and Controls.
Select Registered ActiveX Controls folder
Select Windows Media Player component
When you select, a confirm classes dialog box appears. Click "OK"
Go to your dialog resource. Windows Media Player icon would be displayed on the controls selection view.
drag drop the control onto your dlg box. Add a member variable for the control in the class wizard.
Use 'SetURL' and GetControls() methods of the media player object for controlling the audio/video files (like play, pause, stop etc.)
E.g
m_MPlayer.SetUrl("D:\\Songs\\Xyz.mp3");
m_MPlayer.GetControls().play();
FYI: I am using Windows Media Player Ver 11
Hope this helps!
Thammadi
|
|
|
|
|
it showing GetControlContainer() and GetControlSite()
like this
iam not getting proper functions ...
i want these like Play , Pause and stop functions
how can i get these functions...
Regards,
Srinivas
|
|
|
|
|
I created a test application and I am using GetControls() method, which returns an object of class CWMPControls. This class has all the control methods like play, pause, stop etc.
As I said earlier I am using WMP ver 11. I am not sure if the above class is defined for earlier versions of the WMP control.
Try to upgrade your WMP to 11 and check it out. If it doesn't work out.. I'll share my test source code then..
Thammadi
|
|
|
|
|
i made an application with database mysql
now i use following code to fetch data
GetDlgItemText(IDC_USER,user);
dt="SELECT id from login WHERE user= \'" + user + "\' ";
but problem is that when i use debugger the dt shows empty string
please solve this how can i get data in dt variable
thanks
hi
|
|
|
|
|
Do you have the valid id associated with your user ?
Regards,
Paresh.
|
|
|
|
|
Check the data type of dt.
Manish Rastogi
|
|
|
|
|
thanks sir
the data type is CString of dt
hi
|
|
|
|
|
paras_s12 wrote: but problem is that when i use debugger the dt shows empty string
At what point are you looking at dt ? If it's before the assignment, it will indeed be empty.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
when
ShowWindow(SW_SHOWMAXIMIZED);
the TaskBar can not covered.
How to cover it?
|
|
|
|