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

C / C++ / MFC

 
GeneralRe: Rebar problems! Pin
Neville Franks14-Feb-05 9:29
Neville Franks14-Feb-05 9:29 
GeneralSQLConnect With Custom ODBC Driver Pin
KalliMan13-Feb-05 6:06
KalliMan13-Feb-05 6:06 
QuestionHow to read/write an object of MyClass from/to a file. Pin
six_billion13-Feb-05 5:59
six_billion13-Feb-05 5:59 
AnswerRe: How to read/write an object of MyClass from/to a file. Pin
KalliMan13-Feb-05 6:12
KalliMan13-Feb-05 6:12 
GeneralRe: How to read/write an object of MyClass from/to a file. Pin
six_billion14-Feb-05 5:21
six_billion14-Feb-05 5:21 
AnswerRe: How to read/write an object of MyClass from/to a file. Pin
Ravi Bhavnani13-Feb-05 8:30
professionalRavi Bhavnani13-Feb-05 8:30 
AnswerRe: How to read/write an object of MyClass from/to a file. Pin
six_billion13-Feb-05 16:42
six_billion13-Feb-05 16:42 
GeneralBM_SETIMAGE strange displaying behavior Pin
toxcct13-Feb-05 4:48
toxcct13-Feb-05 4:48 
hello everybody,
(i repost a previous post, but if someone could answer usefully... thx in advance)

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]
GeneralRe: BM_SETIMAGE strange displaying behavior Pin
PJ Arends13-Feb-05 10:23
professionalPJ Arends13-Feb-05 10:23 
GeneralRe: BM_SETIMAGE strange displaying behavior Pin
toxcct13-Feb-05 23:48
toxcct13-Feb-05 23:48 
GeneralDLL Question Pin
Steve Messer13-Feb-05 4:42
Steve Messer13-Feb-05 4:42 
GeneralRe: DLL Question Pin
Mohammad A Gdeisat13-Feb-05 5:37
Mohammad A Gdeisat13-Feb-05 5:37 
GeneralRe: DLL Question Pin
Steve Messer13-Feb-05 7:44
Steve Messer13-Feb-05 7:44 
GeneralRe: DLL Question Pin
14-Feb-05 5:50
suss14-Feb-05 5:50 
GeneralRe: DLL Question Pin
Steve Messer14-Feb-05 5:55
Steve Messer14-Feb-05 5:55 
Generaladd scroll bars to an activex Pin
sstoyan13-Feb-05 4:32
sstoyan13-Feb-05 4:32 
GeneralProgramming a web cam Pin
neilshelton13-Feb-05 2:59
neilshelton13-Feb-05 2:59 
GeneralRe: Programming a web cam Pin
Ted Ferenc13-Feb-05 3:55
Ted Ferenc13-Feb-05 3:55 
GeneralAccess a table of an access database Pin
wushli13-Feb-05 2:01
wushli13-Feb-05 2:01 
QuestionHow to split dialog with separator Pin
Member 151147113-Feb-05 0:24
Member 151147113-Feb-05 0:24 
GeneralActive Accessibility Memory Issue Pin
spsharma12-Feb-05 22:50
spsharma12-Feb-05 22:50 
GeneralRe: Active Accessibility Memory Issue Pin
hawk122810-Mar-09 20:46
hawk122810-Mar-09 20:46 
GeneralProblem reading a Large File Pin
Jason Raymond12-Feb-05 21:21
Jason Raymond12-Feb-05 21:21 
GeneralRe: Problem reading a Large File Pin
Neville Franks12-Feb-05 23:53
Neville Franks12-Feb-05 23:53 
GeneralRe: Problem reading a Large File Pin
Jason Raymond13-Feb-05 11:18
Jason Raymond13-Feb-05 11:18 

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.