Click here to Skip to main content
15,910,872 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in writing template function inside class Pin
Sarath C27-Dec-07 20:11
Sarath C27-Dec-07 20:11 
GeneralRe: Problem in writing template function inside class Pin
Maxwell Chen27-Dec-07 22:34
Maxwell Chen27-Dec-07 22:34 
GeneralRe: Problem in writing template function inside class Pin
Mahesh Kulkarni27-Dec-07 22:29
Mahesh Kulkarni27-Dec-07 22:29 
GeneralRe: Problem in writing template function inside class Pin
Naveen27-Dec-07 22:34
Naveen27-Dec-07 22:34 
GeneralRe: Problem in writing template function inside class Pin
Maxwell Chen27-Dec-07 22:39
Maxwell Chen27-Dec-07 22:39 
GeneralRe: Problem in writing template function inside class Pin
Mahesh Kulkarni27-Dec-07 22:58
Mahesh Kulkarni27-Dec-07 22:58 
GeneralRe: Problem in writing template function inside class Pin
Maxwell Chen27-Dec-07 23:05
Maxwell Chen27-Dec-07 23:05 
QuestionHow to resize bitmap which in CStatic Pin
hanlei000000000927-Dec-07 15:05
hanlei000000000927-Dec-07 15:05 
How to resize bitmap which in CStatic
<code>
CStatic* myStatic;
myStatic = new CStatic();
myStatic-&gt;Create(_T("my static"), WS_CHILD|WS_VISIBLE|SS_BITMAP|SS_CENTERIMAGE, CRect(50,80, 150, 150), this);
myStatic-&gt;SetBitmap(LoadBitmap(AfxGetApp()-&gt;m_hInstance,MAKEINTRESOURCE(IDB_BITMAP_default)));
</code>

these code set bitmap in CStatic control, but the picture is not whole displaied, because its area more than CRect(50,80, 150, 150),

how to resize the bitmap area that to dispaly full onto the CStatic control?
thanks!
AnswerRe: How to resize bitmap which in CStatic Pin
peterchen27-Dec-07 15:36
peterchen27-Dec-07 15:36 
GeneralThank you, my problem has been solved by use WndImage Control. Pin
hanlei000000000927-Dec-07 16:37
hanlei000000000927-Dec-07 16:37 
GeneralWho can know the question of this program Pin
richardye27-Dec-07 14:06
richardye27-Dec-07 14:06 
GeneralAlternatives to FillRect Pin
KellyR27-Dec-07 11:28
KellyR27-Dec-07 11:28 
GeneralRe: Alternatives to FillRect Pin
Mark Salsbery27-Dec-07 11:53
Mark Salsbery27-Dec-07 11:53 
GeneralRe: Alternatives to FillRect Pin
KellyR27-Dec-07 16:43
KellyR27-Dec-07 16:43 
GeneralRe: Alternatives to FillRect Pin
Nishad S27-Dec-07 17:52
Nishad S27-Dec-07 17:52 
GeneralRe: Alternatives to FillRect Pin
KellyR28-Dec-07 3:51
KellyR28-Dec-07 3:51 
GeneralRe: Alternatives to FillRect Pin
Nishad S30-Dec-07 18:08
Nishad S30-Dec-07 18:08 
GeneralRe: Alternatives to FillRect Pin
cmk27-Dec-07 16:30
cmk27-Dec-07 16:30 
GeneralRe: Alternatives to FillRect Pin
KellyR28-Dec-07 3:52
KellyR28-Dec-07 3:52 
GeneralRe: Alternatives to FillRect Pin
cmk28-Dec-07 9:49
cmk28-Dec-07 9:49 
GeneralDirectories of the current process Pin
Vancouver27-Dec-07 8:49
Vancouver27-Dec-07 8:49 
GeneralRe: Directories of the current process Pin
peterchen27-Dec-07 8:56
peterchen27-Dec-07 8:56 
GeneralRe: Directories of the current process Pin
Vancouver27-Dec-07 10:00
Vancouver27-Dec-07 10:00 
GeneralPicture control Pin
Hakan Bulut27-Dec-07 8:45
Hakan Bulut27-Dec-07 8:45 
GeneralRe: Picture control Pin
peterchen27-Dec-07 8:54
peterchen27-Dec-07 8:54 

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.