Click here to Skip to main content
15,889,403 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Multiplication from int value to float value is not giving proper result. Pin
Richard MacCutchan21-Feb-11 0:38
mveRichard MacCutchan21-Feb-11 0:38 
QuestionHow to use Windows forms in unmanaged C++ Pin
Danzy8320-Feb-11 14:12
Danzy8320-Feb-11 14:12 
AnswerRe: How to use Windows forms in unmanaged C++ Pin
csrss20-Feb-11 14:52
csrss20-Feb-11 14:52 
GeneralRe: How to use Windows forms in unmanaged C++ Pin
Danzy8321-Feb-11 1:14
Danzy8321-Feb-11 1:14 
GeneralRe: How to use Windows forms in unmanaged C++ Pin
_AnsHUMAN_ 21-Feb-11 1:49
_AnsHUMAN_ 21-Feb-11 1:49 
QuestionTrackPopupMenu question Pin
csrss19-Feb-11 5:07
csrss19-Feb-11 5:07 
AnswerRe: TrackPopupMenu question Pin
Code-o-mat19-Feb-11 5:24
Code-o-mat19-Feb-11 5:24 
GeneralRe: TrackPopupMenu question Pin
csrss19-Feb-11 5:38
csrss19-Feb-11 5:38 
Great! Thanks. Here is the algo (my own classes but the algo is good):

case CATS_BUTTON: // categories button clicked
{
        ContextMenu *ctx = new ContextMenu();
        wchar_t *err = NULL;
	ctx->Create();
	wchar_t **Cats = db->ListTables(DB_FILE, err); // get array
	int i;
	for(i = 1; ; i++)
	{
		if(!IsNullOrEmpty(Cats[i - 1])) // Categories[i] != NULL
		{
		ctx->AddItem(i, Cats[i - 1]);
		}
		else break;
	}
	unsigned int Clicked = ctx->TrackMenuHit2(hWnd,
	Fbuttons[1]->operator HWND()); // track menu hit, menu appears under button
	switch(Clicked)
	{
		case 0: // no selection has been made
		break;
		default:
		{
			MessageBoxW(0,Cats[Clicked - 1],NULL,0); // show selected text
		}
		break;
	}
	ctx->Destroy(); // get rid of menu class
	delete ctx; // like above
}
break;

011011010110000101100011011010000110100101101110
0110010101110011

GeneralRe: TrackPopupMenu question Pin
Code-o-mat19-Feb-11 5:45
Code-o-mat19-Feb-11 5:45 
GeneralRe: TrackPopupMenu question Pin
Niklas L20-Feb-11 20:28
Niklas L20-Feb-11 20:28 
QuestionScroll Bar in CEdit (GetScrollBarCtrl) Pin
Shivanand Gupta19-Feb-11 4:41
Shivanand Gupta19-Feb-11 4:41 
AnswerRe: Scroll Bar in CEdit (GetScrollBarCtrl) Pin
Hans Dietrich19-Feb-11 6:07
mentorHans Dietrich19-Feb-11 6:07 
QuestionHow can I use SetWindowLongPtr function in VC6 ? Pin
mesajflaviu19-Feb-11 2:39
mesajflaviu19-Feb-11 2:39 
AnswerRe: How can I use SetWindowLongPtr function in VC6 ? Pin
Richard MacCutchan19-Feb-11 2:53
mveRichard MacCutchan19-Feb-11 2:53 
AnswerRe: How can I use SetWindowLongPtr function in VC6 ? Pin
User 742933819-Feb-11 21:33
professionalUser 742933819-Feb-11 21:33 
GeneralRe: How can I use SetWindowLongPtr function in VC6 ? Pin
Richard MacCutchan19-Feb-11 21:48
mveRichard MacCutchan19-Feb-11 21:48 
QuestionRe: How can I use SetWindowLongPtr function in VC6 ? Pin
David Crow19-Feb-11 3:22
David Crow19-Feb-11 3:22 
AnswerRe: How can I use SetWindowLongPtr function in VC6 ? Pin
User 742933819-Feb-11 21:35
professionalUser 742933819-Feb-11 21:35 
AnswerRe: How can I use SetWindowLongPtr function in VC6 ? Pin
mesajflaviu20-Feb-11 7:22
mesajflaviu20-Feb-11 7:22 
Question891130 - capturing an image from a camera Pin
ilostmyid219-Feb-11 2:25
professionalilostmyid219-Feb-11 2:25 
QuestionVISUAL C++ resource.h/rc madness mess Pin
andwan018-Feb-11 12:24
andwan018-Feb-11 12:24 
AnswerRe: VISUAL C++ resource.h/rc madness mess Pin
Hans Dietrich18-Feb-11 12:47
mentorHans Dietrich18-Feb-11 12:47 
AnswerRe: VISUAL C++ resource.h/rc madness mess Pin
Albert Holguin18-Feb-11 14:09
professionalAlbert Holguin18-Feb-11 14:09 
QuestionPlugin for activex Pin
S p k 52118-Feb-11 5:48
S p k 52118-Feb-11 5:48 
AnswerRe: Plugin for activex Pin
Luc Pattyn18-Feb-11 5:58
sitebuilderLuc Pattyn18-Feb-11 5:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.