|
|
Hi,
Did you check it in second folder ? VS2005 has different folder structure - one Debug/Release foder is in solution folder and the second in project.
And the thread which you reffered ... you wrote that you solved the problem.
You wrote that problem occurs sometimes - perhaps some pointers are not valid or incorect initialized - try to detect which function or which line causes crashes (you can e.g. create an log file)
-----------
Mila
|
|
|
|
|
Thanks for the response Mila,
Maybe I didn't expressed myself correctly. The only thing I want to know is, the principle behind the compiling of a project when using VS2005, in the sense that the CRT dll's cause problems when transfering an exe to another computer. How to prevent it ... I have read articles about that, but those articles did not answer my question. And what steps I can follow to prevent such an occurance.
The previous thread was just for background information, Yes I said that I solved it, but that was till I wrote the next application, and it happened again.
Many thanx
Regards
-- modified at 0:21 Thursday 21st December, 2006
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
hi
I have ATL ActiveX Control.I have placed Dialog box in that.I want to Display an ActiveX Control on that dialog.The ActiveX Control is not visible in Shared but it is visible in static Linking.
I have placed AfxEnableControlContainer but even then there seems to be problem with shared.is there any equivalent for AfxEnableControlContainer in Shared Dll?
how to display ActiveX on another ActiveX in shared mode?
Any links wud do fine...
Thanx in advance
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
Hi Guys,
Can anyone tell my how can i create a Global Desktop that can be used by all the users of a system.
I wanna do it programmatically using VC++....
Thanks
~ Selva
|
|
|
|
|
Hello,
i have an litle CListBox control on my dialog, and i like to show items with the gridlines,
ist that posible,i can't find any params to set and show this style?
Any one have some sugestions for me?
regards
break;
|
|
|
|
|
m_ListCtrl.SetExtendedStyle(LVS_EX_GRIDLINES);
mind you sometimes it doesn't work well in XP with theme enabled.
Used on me in a bar: Have you considered suing your brains for non-support?
|
|
|
|
|
Hello,
thanks for answer, but i dont mean the CListCtrl, i mean CListBox, and she dont have function like
SetExtendedStyle(...);
any other way or i dont understand what you mean?
regards
break;
|
|
|
|
|
AFAIK CListBox has not gridlines.
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.
|
|
|
|
|
I could be wrong, but I do not think that the standard List Box control supports lines. The List View control does.
Doing some custom drawing might be a way to get you some lines. There are a few custom-drawn List Box controls on this site you can search for and use as a starting point.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
How can disable an item of context popup menu ?
|
|
|
|
|
EnableMenuItem doesnt work?
|
|
|
|
|
Are you using MFC?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
how to change scroll bar's color of list box?
Ajit
|
|
|
|
|
I think you cant change color scrollbar of listbox but you can hide main scrollbar and use of your scrollbar see this[^] maybe it some helpfuls
|
|
|
|
|
Hi anyone can help?
How can we detect enter Key pressed in MFC/C++ created by CHTMLEDITVIEW.
ie. When i run my application, I will go to FILE->OPEN->name.ppt
The "name.ppt" (powerpoint slide) will be open.
When i pressed the ENTER key, it does not capture it.
Why?
I used PretranslateMessage()... It doesnt work.
anyone can help?
terr
|
|
|
|
|
Hi everyone,
by sizing the MDI-Child the textboxes are getting ugly ( double border & pieces of the border in the textbox )
At the End of the sizing ( WM_EXITSIZEMOVE ) i make a :
this->RedrawWindow();
this->Invalidate();
this->UpdateWindow();
RedrawControls(); // --> makes a .Invalidate() of all textboxes and labels
but the textboxes keeps ugly.
If i open another window ( f.ex. Explorer ) and i return on my application, all is refreshed nicely.
So, there is a "Refresh" that redraws all. But how can i perform this kind of refresh myself ?
Big thanks
|
|
|
|
|
baerten wrote: this->RedrawWindow();
call the redrawfunction specifing the RDW_ALLCHILDREN flag
nave
|
|
|
|
|
Thanks for your answer, but it resolves not the problem.
If i slide another MDIChild over the View with the "ugly" textboxes, they will be refreshed correctly.
-- modified at 5:10 Wednesday 20th December, 2006
A SetRedraw(FALSE) during the Sizing provoces this problem. Even with a SetRedraw(TRUE) at the end of
the OnSize-Method the following Invalidate() and RedrawWindow() does not refresh the entire textbox
But thanks nevertheless
|
|
|
|
|
Why do you need to do so many redraws at the end of a resize or move?
What happens if you don't handle WM_EXITSIZEMOVE and let the system handle it?
At the most you should need
this->Invalidate(FALSE);
this->UpdateWindow();
If the controls are children of the window being updated then they will be redrawn as well.
|
|
|
|
|
I have problem in displaying the tooltip.
In the header file of the Dialog,I declare the message handler as
<br />
afx_msg BOOL ShowMyToolTips(UINT id, NMHDR* pTTTStruct, LRESULT* pResult);<br />
In the .cpp file of the Dialog,
<br />
BEGIN_MESSAGE_MAP(CSimpleToolTipDlg, CDialog)<br />
... <br />
ON_NOTIFY_EX(TTN_NEEDTEXT,0,ShowMyToolTips) <br />
END_MESSAGE_MAP()<br />
In the OnInitDialog
<br />
BOOL CSimpleToolTipDlg::OnInitDialog()<br />
{<br />
...<br />
EnableToolTips(true);
return TRUE; <br />
}<br />
Then the definition of the message handler
<br />
BOOL CSimpleToolTipDlg::ShowMyToolTips(UINT id, NMHDR* pNMHDR, LRESULT* pResult)<br />
{<br />
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT*)pNMHDR;<br />
UINT nID = pNMHDR->idFrom;<br />
if(pTTT->uFlags & TTF_IDISHWND)<br />
{<br />
nID = ::GetDlgCtrlID((HWND)nID);<br />
if(nID)<br />
{<br />
pTTT->lpszText = "I am a ToolTip";
pTTT->hinst = AfxGetResourceHandle();<br />
return(TRUE);<br />
}<br />
}<br />
return(FALSE);<br />
}<br />
The big problem is,ShowMyToolTips() function is not called at all.
I even tried
ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, ShowMyToolTips)
ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, ShowMyToolTips)
But it also does not work.
Do any one know what's wrong.
|
|
|
|
|
overide the OnNotify function and inside it check for the code TTN_NEEDTEXT
nave
|
|
|
|
|
You are great man!
It works fine,if I just override OnNotify function without
adding any code in it.
If you know the reason why it does not work if OnNotify
was not overridden,let me also know that.
Thank you so much.
|
|
|
|
|
poda123 wrote: I just override OnNotify
u didn't write any code inside it?
nave
|
|
|
|
|
Yes, I did not write any code in OnNotify().But it works.
Also I cannot write the code of TTN_NEEDTEXT message handler's code
in OnNotify() function because the parameters has to be given by the OS
<br />
BOOL CWFPDlg::ShowMyToolTips(UINT id, NMHDR* pNMHDR, LRESULT* pResult)<br />
{<br />
}<br />
|
|
|
|