Click here to Skip to main content
15,887,812 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to select Printer Tray or PaperSource in Visual Studio 2003 .NET? Pin
MSS-Software6-Jan-06 11:01
MSS-Software6-Jan-06 11:01 
GeneralRe: How to select Printer Tray or PaperSource in Visual Studio 2003 .NET? Pin
vipinasda7-Jan-06 9:10
vipinasda7-Jan-06 9:10 
QuestionHow can I do with CListView? Pin
runningfeng6-Jan-06 1:02
runningfeng6-Jan-06 1:02 
AnswerRe: How can I do with CListView? Pin
Owner drawn6-Jan-06 1:28
Owner drawn6-Jan-06 1:28 
GeneralRe: How can I do with CListView? Pin
runningfeng8-Jan-06 15:13
runningfeng8-Jan-06 15:13 
GeneralRe: How can I do with CListView? Pin
runningfeng8-Jan-06 15:28
runningfeng8-Jan-06 15:28 
QuestionCustomize a toolbar in win32 Pin
Ward6-Jan-06 0:07
Ward6-Jan-06 0:07 
AnswerRe: Customize a toolbar in win32 Pin
Owner drawn6-Jan-06 0:22
Owner drawn6-Jan-06 0:22 
LRESULT MsgNotify(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam)
{
    static UINT		i=0;
    LPNMHDR         lpnmhdr;

    lpnmhdr = (LPNMHDR)lparam;

    // The following code allows the toolbar to be customized. 
    // If you return FALSE the Customize Toolbar dialog flashes
    // and goes away.

    if (lpnmhdr->code == TBN_QUERYINSERT || lpnmhdr->code ==
	    TBN_QUERYDELETE)
    {
     return TRUE;
    }
        
    if (lpnmhdr->code == TBN_GETBUTTONINFO)
    {
        LPTBNOTIFY lpTbNotify = (LPTBNOTIFY)lparam;
        char  szBuffer [20];
	   
		// 20 = total number of buttons.
		// tbButton and tbButtonNew send information about
		// the other 12 buttons in tbButtonNew.
		
        if (lpTbNotify->iItem < 12)    
        {                              
         lpTbNotify->tbButton = tbButtonNew[lpTbNotify->iItem];
		 LoadString(hInst,
                    4000+ lpTbNotify->iItem,  
                    szBuffer, sizeof(szBuffer)/sizeof(szBuffer[0]));
         hr = StringCchCopy
                  (lpTbNotify->pszText, 
                          sizeof(lpTbNotify->pszText)
                          /sizeof(lpTbNotify->pszText[0]),
                          szBuffer );
                        if(SUCEEDED(hr))
                          {
                          lpTbNotify->cchText =     
                               sizeof(szBuffer)/sizeof(szBuffer[0]);
                          }
                        else
                          {
                          TODO: Write error handler.
                          }
         return TRUE;
        }
     else
        return 0;
    }
    return 0;
}


Love Forgives--Love Gives--Jesus is Love Smile | :)
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord


GeneralRe: Customize a toolbar in win32 Pin
Ward6-Jan-06 0:41
Ward6-Jan-06 0:41 
GeneralRe: Customize a toolbar in win32 Pin
Owner drawn6-Jan-06 0:49
Owner drawn6-Jan-06 0:49 
GeneralRe: Customize a toolbar in win32 Pin
Ward6-Jan-06 1:07
Ward6-Jan-06 1:07 
GeneralRe: Customize a toolbar in win32 Pin
Prakash Nadar6-Jan-06 0:45
Prakash Nadar6-Jan-06 0:45 
GeneralRe: Customize a toolbar in win32 Pin
Ward6-Jan-06 1:04
Ward6-Jan-06 1:04 
AnswerRe: Customize a toolbar in win32 Pin
Prakash Nadar6-Jan-06 0:48
Prakash Nadar6-Jan-06 0:48 
GeneralRe: Customize a toolbar in win32 Pin
Ward6-Jan-06 1:06
Ward6-Jan-06 1:06 
Questionvideo stream, Pin
Member 22716555-Jan-06 23:23
Member 22716555-Jan-06 23:23 
Questionhow to conect devlopment work station to target device Pin
birajendu5-Jan-06 23:14
birajendu5-Jan-06 23:14 
QuestionPath of a file in console app Pin
Cedric Moonen5-Jan-06 22:38
Cedric Moonen5-Jan-06 22:38 
AnswerRe: Path of a file in console app Pin
Owner drawn5-Jan-06 23:05
Owner drawn5-Jan-06 23:05 
GeneralRe: Path of a file in console app Pin
Cedric Moonen5-Jan-06 23:11
Cedric Moonen5-Jan-06 23:11 
GeneralRe: Path of a file in console app Pin
Owner drawn5-Jan-06 23:12
Owner drawn5-Jan-06 23:12 
AnswerRe: Path of a file in console app Pin
Owner drawn5-Jan-06 23:07
Owner drawn5-Jan-06 23:07 
GeneralRe: Path of a file in console app Pin
Cedric Moonen5-Jan-06 23:12
Cedric Moonen5-Jan-06 23:12 
AnswerRe: Path of a file in console app Pin
sunit55-Jan-06 23:11
sunit55-Jan-06 23:11 
AnswerRe: Path of a file in console app Pin
David Crow6-Jan-06 4:56
David Crow6-Jan-06 4:56 

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.