Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++7 Char set ???? Pin
RChin11-Feb-05 1:17
RChin11-Feb-05 1:17 
GeneralCrystal Reports Pin
shiraztk10-Feb-05 23:47
shiraztk10-Feb-05 23:47 
GeneralDowngrade a VC++7.0 to VC++6.0 Pin
the.freerider10-Feb-05 23:39
the.freerider10-Feb-05 23:39 
GeneralRe: Downgrade a VC++7.0 to VC++6.0 Pin
Vinaya11-Feb-05 0:13
Vinaya11-Feb-05 0:13 
GeneralDiferrences between open a file and double clicking a file Pin
doctorpi10-Feb-05 23:38
doctorpi10-Feb-05 23:38 
GeneralRe: Diferrences between open a file and double clicking a file Pin
Anonymous10-Feb-05 23:55
Anonymous10-Feb-05 23:55 
GeneralRe: Diferrences between open a file and double clicking a file Pin
Neville Franks11-Feb-05 0:51
Neville Franks11-Feb-05 0:51 
GeneralBS_SETIMAGE Pin
toxcct10-Feb-05 23:31
toxcct10-Feb-05 23:31 
hello everybody,

i use the following code :
HICON hIcon = LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_PREVIEW));
CButton* pButton = (CButton*)GetDlgItem(IDC_PREVIEWFACT_BTN);
pButton->SendMessage(BM_SETIMAGE, (WPARAM)IMAGE_ICON, (LPARAM)hIcon);

this code is supposed to set the IDC_PREVIEWFACT_BTN button face with the IDI_PREVIEW icon.
the icon is 16x16 pixels, and the button is bigger (in pixels) than my icon (i cannot say how wuch, because the resource editor don't "speak" in pxls).

my problem is that the ison displays quite "well", except the fact that is is much bigger than the button (so truncated).

does anyone know how to display the icon to its real size ?

thanks in advance...


TOXCCT >>> GEII power
[toxcct][VisualCalc]
GeneralUnable to debug on web-server error ASP.NET Pin
vgrigor110-Feb-05 22:03
vgrigor110-Feb-05 22:03 
QuestionHow to make any DialogBox as a child of CMainFrm in an MDI App? Pin
Anonymous10-Feb-05 19:39
Anonymous10-Feb-05 19:39 
AnswerRe: How to make any DialogBox as a child of CMainFrm in an MDI App? Pin
rocky_pulley11-Feb-05 0:31
rocky_pulley11-Feb-05 0:31 
GeneralRe: How to make any DialogBox as a child of CMainFrm in an MDI App? Pin
Anonymous11-Feb-05 1:13
Anonymous11-Feb-05 1:13 
GeneralGET RESOURCES Pin
kedar.dave10-Feb-05 19:19
kedar.dave10-Feb-05 19:19 
GeneralRe: GET RESOURCES Pin
ThatsAlok10-Feb-05 19:42
ThatsAlok10-Feb-05 19:42 
GeneralRe: GET RESOURCES Pin
David Crow11-Feb-05 2:57
David Crow11-Feb-05 2:57 
QuestionMFC setdelay()?? Pin
Member 148449610-Feb-05 18:34
Member 148449610-Feb-05 18:34 
AnswerRe: MFC setdelay()?? Pin
Yulianto.10-Feb-05 23:09
Yulianto.10-Feb-05 23:09 
GeneralRe: MFC setdelay()?? Pin
Member 148449611-Feb-05 17:58
Member 148449611-Feb-05 17:58 
GeneralProblem with toggling windows. Pin
Anonymous10-Feb-05 18:16
Anonymous10-Feb-05 18:16 
GeneralBrowse for folder and display contents in list control Pin
Ashman10-Feb-05 17:54
Ashman10-Feb-05 17:54 
GeneralRe: Browse for folder and display contents in list control Pin
David Crow11-Feb-05 3:05
David Crow11-Feb-05 3:05 
QuestionTo get filename from filepath..? Pin
Monisankar10-Feb-05 17:51
Monisankar10-Feb-05 17:51 
AnswerRe: To get filename from filepath..? Pin
ThatsAlok10-Feb-05 18:26
ThatsAlok10-Feb-05 18:26 
AnswerRe: To get filename from filepath..? Pin
rocky_pulley11-Feb-05 0:33
rocky_pulley11-Feb-05 0:33 
GeneralRe: To get filename from filepath..? Pin
rocky_pulley11-Feb-05 0:38
rocky_pulley11-Feb-05 0:38 

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.