|
are you creating an MFC app ?
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
|
try linking with comctl32.lib
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
that i neede to add some .lib file to the list under ALT+F7>Link... thanks
|
|
|
|
|
Hello,
After I've built my dll I manually run a batch file to copy the release and debug versions to the windows system folder. ( I want copies in release/ debug/ and system32). How can I cause the batch file to be run automatically from the project settings, that's if it's possible.
Thanks,John
|
|
|
|
|
Project / Settings/ PostBuild Tab. add your batch file as one of the commands.
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
Adding to Chris' answer, if what you want is as simple as locating the output .DLL to a directory different than the defult, look around the project settings tabs, there's one specifying just this.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks. I wish a copy to be written to the windows folder as well as the location specified within Project, Settings, Link so I added the batch to a batch file in Post build settings.
I think I'm finally getting the hang of c++ now!
|
|
|
|
|
Is there a way in VC++ to be notified when a file changes on disk, without monitoring it manually (like the RegNotifyChangeKeyValue call for registry changes)?
tx
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
yes.
http://www.codeproject.com/file/directorychangewatcher.asp
-c
"Should you not have a ramekin of sea salt beside the stove, you don’t deserve oatmeal."
Dean Allen
|
|
|
|
|
Hi there,
How can i play MP3 in my programs ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Here is a very easy way to play mp3's
http://www.codeproject.com/audio/mp3player.asp
Rob
|
|
|
|
|
I want to use CProgressCtrl to show the progress when I search data from SQL server. Who can tell me how to get the progress? Thanks a lot!
David
|
|
|
|
|
Sorry, but you can't. Not even the SQL Server program knows how long a query will take. So it cannot report progress.
The only way to do this is to retrieve all the records and apply the criteria in your program. Then you can keep track of how many have been processed.
Good Luck,
Bill
|
|
|
|
|
I am trying to get a dynamically created scrollbar to have a thumb which is proportional to how much area is currently displayed.
You can see this kind of style on the IE explorer vertical scroll bar when you need to scroll a page, the thumb shows how much of the total page you have displayed. For my scroll bar, its the default block size, and I can't seem to change it to what I want. I have been through most of the MSDN on the subject. Is there some command or style I have missed that will do this for me?
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
Have a look at the MSDN documentation for the MFC CWnd member function CWnd::SetScrollInfo () (or the plain SDK function SetScrollInfo () which it invokes).
<br />
SCROLLINFO scroll_info;<br />
scroll_info.cbSize = sizeof (scroll_info);<br />
scroll_info.fMask = SIF_PAGE | SIF_POS | SIF_RANGE;<br />
scroll_info.nMin = min;<br />
scroll_info.nMax = min;<br />
scroll_info.nPos = position;<br />
scroll_info.nPage = size_of_window;<br />
SetScrollInfo (SB_VERT, &scroll_info);<br />
Stephen C. Steel
Kerr Vayne Systems Ltd.
|
|
|
|
|
How do i put a description comment into the [soap_method] attribute so that it is displayed in the Web Service htm file?
|
|
|
|
|
Hi,
How do I define a member variable for a dialog item that uses my CStatic derived class?
"Add Variable" only has CStatic (the base) and it's greyed out?!?!
Jon
Signature space for rent. Apply Within.
|
|
|
|
|
maybe it wont let you set a variable to it because it has the default id of IDC_STATIC.. try changing it to something unique like IDC_MYSTATIC and then setting a variable to it..
im probably completely misunderstanding your question, but i know when i have a static text item in a dialog i just use: CStatic* pStatic = (CStatic*)GetDlgItem(IDC_MYSTATIC); and then do whatever i need to to it..
sorry if im off base, im a pretty new VC++ coder myself.
-dz
|
|
|
|
|
Hi folks, I'm hoping that someone out ther can help this confused MFC newbie
I'm updating some old MFC code which implements a web browser inside an application (using a class derived from CHTMLView). The html pages I want to load into this browser need to know whether they are running inside the application or in a normal browser (so I can display different content).
I was wondering if it would be possible to set a property of some kind (when the CHTMLView is created) which I can pick up in the html using JavaScript (in the same way as the browser name / version etc), so that it can determine what to display.
Anyone know if it's possible, and if so, how I do it (a web search has revealed very little info on the subject).
Thanks,
Iain
|
|
|
|
|
Yes, and maybe no
When you have loaded a document you may interact with it using the IHTMLDocument2 interface. This way you can add your own kind of properties, say for instance a JavaScript snippet. Trouble is, in your case if I understood you correctly, this will only work once the document is fully loaded, and at that time the original HTML is already displayed, which is probably not what you want. AFAIK, there is no way to control the HTML stream from a web server to the WebBrowser control, unless you make your application act as a HTML proxy server, modifying data as it comes along.
Another solution would be to set up a socket connection to a web server yourself, modify the file, and store it on disk. Load that file into your CHTMLView.
|
|
|
|
|
Thanks, I think I have this sorted now. I'm getting OnDocumentComplete to write out a cookie, which the html looks for via a bit of Javascript, (and alters it's content accordingly). Seems to work great
Cheers,
Iain
|
|
|
|
|
Hi all,
Is there a way to retrieve the bounding rectangle of a popup menu?
Thanks!
|
|
|
|
|
You could do this in the menu's parent window by handling the WM_MEASUREITEM message and calling the base class version from there. Take a look at the base class's return value and you will be able to work out how big the menu was when it was displayed.
Not sure how to get it before its displayed.
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
whenever the selection in the list changes this function gets called:
void CSelectReport::OnLvnItemchangedComplist(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMLISTVIEW pNMLV = reinterpret_cast<lpnmlistview>(pNMHDR);
TRACE("selection = %i\n",m_lstCompanies.GetSelectionMark());
*pResult = 0;
}
however it always returns the item which was just unselected, not what was just clicked on.. its like its always lagged one step behind, which makes it imposible for me to update enabling/disabling of items based on the selection.. can someone please help me understand a way to correct this eroneous microsoft control/event handler?
message map:
ON_NOTIFY(LVN_ITEMCHANGED, IDC_COMPLIST, OnLvnItemchangedComplist)
plz tell me someone else is familiar with this problem! thanks!
-dz
|
|
|
|