|
In that case, the new styles manifest should be linked in automatically with your executable after the normal link step. What does the output window of your build display?
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Generating Code...
Compiling resources...
Compiling manifest to resources...
Linking...
Embedding manifest...
Build log was saved at "file://c:\Documents and Settings\Admin\??????? ????\now\Prog\Prog\Debug\BuildLog.htm"
Prog - 0 error(s), 2 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
That's what I have.
-- modified at 1:39 Thursday 1st September, 2005
|
|
|
|
|
Did you use MFC? I used MFC inmy project andeverything worked like a charm. I autmatically used the user settings for the windows styles (XP style or old style).
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
|
I don't know what is going wrong with your project. Do you have the new styles enabled in XP or do you have the old styles enabled for performance reasons? Otherwise, I don't know what might be wrong.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
both dialog-box and MDI-Document window are childs of another windows. but the former can be moved out of the client area of its parent, the latter can not; it goes unappeared.
which style differentiates these two child windows?
|
|
|
|
|
-- modified at 11:30 Monday 29th August, 2005
|
|
|
|
|
|
A dialog box is an owned window, not a child window. Only child windows are restricted to their parent's client area.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
-- Buffy
|
|
|
|
|
|
|
hmm, I would ask what's up with replying to deleted messages?
I posted a reply and got a server error so I hit back and submitted again; but the first reply was actually received by the server, so that explains the two posts.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I have a problem.
In my Server application method OnDraw CServerItem is called only once at startup, then
Some initialization occur in server.
How I Can update te representation of server in conteiner?
May be anyone know how it works?
And where OnDraw is called?
|
|
|
|
|
Tree controls seem to be eating WM_LBUTTONUP messages if drag and drop is enabled. If I turn drag and drop support off (using TVS_DISABLEDRAGDROP), I get the WM_LBUTTONUP messages fine but with it turned on, I stop getting them. Instead I get a TVN_BEGINDRAG message that lets me know if a drag was started but I need the WM_LBUTTONUP if no drag was done.
Anyone know how to force the tree control to give me the WM_LBUTTONUP if a drag operation was not started?
The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison
Awasu 2.1.2 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
With drag and drop enabled, I get a WM_LBUTTONUP message if I move the mouse prior to releasing, and the release point is within the tree control:
1) Click
2) Move/drag within control
3) Release
4) WM_LBUTTONUP
If I don't move/drag, or I drag but release outside the control, I get nothing:
1) Click
2) Don't move or move/drag outside tree control
3) Release
4) Nothing
Strangely, NM_CLICK is fired if I don't move the mouse at all.
1) Click
2) Release
3) NM_CLICK
Perhaps a mouse capture in the begin drag routine would work.
He is smart. He will make our Windows go.
|
|
|
|
|
Thanks for taking the time to have a look at this. I had a bit more of play with things and confirmed pretty much what you found.
It might be possible to handle the NM_CLICK to handle the various different scenarios but I figured it would be a bit too fragile - relying on this kind of message ordering is always risky , especially under different versions of Windows. I ended up hacking around this by starting a timer when I receive the WM_LBUTTONDOWN and continually checking the state of the left mouse button
The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison
Awasu 2.1.2 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
i have another question. how can i write the data of datetime type in sql server to the html document. the data of datetime from database is VARIANT (VT_DATE), but there is not datetime type in html. could you tell me how to do? thanks
|
|
|
|
|
Retrieve the string from the variant and then write it like you desire in the html.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
are there the functions that convert the datetime format to string format?
|
|
|
|
|
Try to retrieve the VT_BSTR part of the VARIANT instead of the VT_DATE.
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Hi,
I am dealing with Excel Automation. I get most things working, but now I have a very strange behaviour:
I created a big macro, which creates a pivot table from a normal table, and then makes a chart out of it.
When I run the macro from the excel file, everything works!
But, when I run the macro through a c++ program, it crashes.
Here my C++ code:
hr = CreateObject(OLESTR("Excel.Application"), &pdispApplication);
V_VT(&v) = VT_BOOL;
V_BOOL(&v) = TRUE;
hr = Invoke(pdispApplication, DISPATCH_PROPERTYPUT, NULL, NULL, NULL,
OLESTR("Visible"), TEXT("v"), v);
hr = Invoke(pdispApplication, DISPATCH_PROPERTYGET, &vRet, NULL, NULL,
OLESTR("WorkBooks"), NULL);
pdispWorkbook = V_DISPATCH(&vRet);
V_VT(&v) = VT_BSTR;
V_BSTR(&v) = SysAllocString(OLESTR("C:\\Dokumente und Einstellungen\\geh\\Desktop\\Excel Tests\\Test02.xls"));
hr = Invoke(pdispWorkbook, DISPATCH_METHOD, &vRet, NULL, NULL,
OLESTR("Open"), TEXT("v"), v);
V_VT(&v) = VT_BSTR;
V_BSTR(&v) = SysAllocString(OLESTR("Test02.xls!Chart"));
hr = Invoke(pdispApplication, DISPATCH_METHOD, &vRet, NULL, NULL,
OLESTR("Run"), TEXT("v"), v);
What it does:
It creates the pivot table, and creates a new chart. But when trying to set the XValue or Value from a new series, it says:
"The XValue-Propertie cant be set"
Here the code snippet from the macro:
Sheets.Add
Charts.Add
ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, TypeName:= _
"Linie - Säule auf zwei Achsen"
ActiveChart.SetSourceData Source:=Sheets("Tabelle3").Range("A1")
Set st = ActiveChart.SeriesCollection.NewSeries
With st
.Name = "=""Anz. KLEs am Platz"""
.XValues = "=Tabelle2!R4C3:R4C57"
.Values = Values
End With
As I said, if run it directly from the xls file, it works!
And yes, the table "Tabelle2" is there, and opened.
If I put a "stop" before it, so that I can trace it, it looks totally equal!
Wheres my problem?
EDIT: I just solved it by using .XValues = Worksheets("Tabelle2").Range("A4:BP4")
But I still would like to know where my problem was!
DKT
-- modified at 11:05 Monday 29th August, 2005
|
|
|
|
|
Hello All
I am using List control on my Form View (VC 6.0 on Windows 2000). I have derived my own class from CListCtrl and overwritten "OnCustomDraw" to draw my own List Control. I have placed the control on top of the Tab Control. When I switch from my application to another application and come back, repainting is not happening properly. I am seeing the tab control and the list control is not visible. After some time it appears automatically or if i go to some other tab and come back it appears.
I have not overloaded OnDraw in my View Class.If I use CListCtrl without using my own class then repainting happens properly.
As a solution for above problem I overloaed OnDraw in my view class and i painted the list controls.
<br />
void CMyView::OnDraw(CDC* pDC) <br />
{<br />
if (m_oTabCtrl.GetCurSel () == 0) {<br />
m_oMyListCtrl1.Invalidate ();<br />
} else {<br />
m_oMyListCtrl2.Invalidate ();<br />
}<br />
}<br />
After this I am not getting any painting problem.
Please let me know what was the cause for above problem and whether is there any better solution than this?
Thanks for your time
Ravi
|
|
|
|
|
I have a dll which is getting instantiated from one virtual directory. And inside the dll I'm calling the following functions.
HANDLE hEventSource = RegisterEventSource(NULL, _T("TrxDax") );
if (hEventSource != NULL)
{
..
int b = ReportEvent(hEventSource, EVENTLOG_ERROR_TYPE, 0, 0x00000001L, NULL, 1, 0, (LPCTSTR*) &lpStrings[0], NULL);
...
}
1. Actually the RegisterEventSource() call is failing if the call is made from virtual dir. in Win2003. GetLastError() is returning error value(5) meaning Access denied for the call.
2. But the same thing is working on earlier versions(win2000,XP..).
3. And when the above code is used in a .exe file(simple exe file), then it's working in Win2003. Meaning..(error is reported in eventlog).
4. So, Does the enhanced security in 2003 is blocking the call when it's instantiated through virtual dir.?
Is it clear? or do let me know if some more input is needed..
Thanks
Find a job u love and u'll never have to work for a day in your life....
Zxczc
|
|
|
|
|
Hello All,
How to establish communication with the existing device driver(.sys) ?
|
|
|
|
|
Hi,
I need to remove a section of text from a CRichEditControl, but also store all of the formatting data associated with it- so that I can re-insert it later on.
Does anyone know of a way to use the underlying clipboard operations to do this? i.e instead of removing text, it is cut (into some storage location - not the clipboard!) and then when the text needs to be replaced, it is pasted from that location.
if not, is there some simple method for storing all of the formatting data associated with a range of text? It's worth noting that the CHARFROMAT and PARAFORMAT will be different for different parts of the text.
tricky one, eh?
Thanks in advance,
Dave
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|