|
You can override ExitInstance method of your App class.
For instance, the following override make the application to return 5 :
int CMyApp::ExitInstance()
{
CWinApp::ExitInstance();
return 5;
}
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.
|
|
|
|
|
Nice method. Thanks!
Maxwell Chen
|
|
|
|
|
hi all.
I whont to set my style of window.
Can you help?
|
|
|
|
|
When asking for help, you should give more detail.
|
|
|
|
|
dude, if somebody else had asked a question that way, would you have helped him ? even if you wanted to ?
what have you tried so far ?
|
|
|
|
|
|
Can you more explain ? how did you try? did you get any error or message?
|
|
|
|
|
I can create Standard window form my program, but I whont that this window wos different, cane I control color of the window, color of the border and somting like this?
|
|
|
|
|
david bagaturia wrote: whont
david bagaturia wrote: wos
david bagaturia wrote: cane
what the hell does that mean ?!
|
|
|
|
|
I want to develop a new GINA dll to use smart card for winlogon. I have surveyed and studied MSDN and got useful information but I want to know more about that. If there is any article available, please let me know. Thanks.
|
|
|
|
|
|
Hi all,
Can any one please tell me the code for loading a popup menu on right click on a particular item in a list view.
Thanks.
Kishore.
|
|
|
|
|
You can use of NM_RCLICK event and then load your menu.
|
|
|
|
|
I have already tried using the NM_RCLICK event. But the menu is not being loaded for some reason.
Please give me a sample code for loadmenu in List view.
Kishore
|
|
|
|
|
Can you show your code how did you declare it,please?
|
|
|
|
|
Y K Kishore Kumar wrote: I have already tried using the NM_RCLICK event.
Does this imply that you are handling the NM_RCLICK notification? If so, then you should have something like:
BEGIN_MESSAGE_MAP(CMyView, CListView)
ON_NOTIFY_REFLECT(NM_RCLICK, OnRclick)
END_MESSAGE_MAP()
...
void CMyView::OnRclick(LPNMHDR, LRESULT* pResult)
{
CListCtrl &ctrlList = GetListCtrl();
CPoint pt;
CMenu menu,
*pSubMenu;
if (ctrlList.GetNextItem(-1, LVIS_SELECTED) != -1)
{
menu.LoadMenu(IDR_ITEM_MENU);
pSubMenu = menu.GetSubMenu(0);
pt = GetMessagePos();
pSubMenu->TrackPopupMenu(TPM_LEFTALIGN, pt.x, pt.y, this);
}
*pResult = 0;
}
"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
|
|
|
|
|
I have used following code in my project
//////
Pen pen((ARGB) Color::Black, 10.0f); <br />
CString sFont(_T("Arial"));
FontFamily ff(sFont.AllocSysString());<br />
StringFormat sf;<br />
<br />
Point p(rect.left,rect.bottom);
GraphicsPath lgp;<br />
lgp.Reset();<br />
lgp.AddString(m_strText.AllocSysString(), m_strText.GetLength(), &ff, FontStyleBold, 300.0F, p, &sf);<br />
g->DrawPath(&pen,&lgp);
/////
The text is dispalyed like bottom to up that means all the characters are at 180 degree angle from left to right.
What I have to do to solve the problem? Please help........
|
|
|
|
|
This is C++/VC++ forum. Please refrain from posting Java related threads
|
|
|
|
|
mandanani wrote: This is C++/VC++ forum. Please refrain from posting Java related threads
But where is Java Question
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
can anybody tell me if it is possible to use a java compatible dll in an java applet, if yes please tell me how to use it...
swaroop
|
|
|
|
|
|
work i have done in the project
1. made the header file using javah as per the document given to me
2. and included the header dile in the dll vc++ project for making the dll
3. after dll creation i copied the dll in to the java workspace and also in the class directory.
4. the java code is showing runitime while i try to call the dll.
swaroop
|
|
|
|
|
I am lost
How come a VC++ dll (hope not COM dll) use in Java application. I am learning things which I have never dreamt of
|
|
|
|
|
i mentioned vc++ bcoz i'm using the visual studio as my editor..the dll is a plain win32 dll completly in c++
swaroop
|
|
|
|
|
swaroopkb wrote: the dll is a plain win32 dll completly in c++
that's contradictory... Win32 is plain C, not C++ at all
|
|
|
|