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

C / C++ / MFC

 
GeneralStrange screen resolution problem Pin
Stan the man5-Aug-04 16:25
Stan the man5-Aug-04 16:25 
GeneralRe: Strange screen resolution problem Pin
Christian Graus5-Aug-04 16:44
protectorChristian Graus5-Aug-04 16:44 
GeneralRe: Strange screen resolution problem Pin
Stan the man5-Aug-04 18:16
Stan the man5-Aug-04 18:16 
GeneralRe: Strange screen resolution problem Pin
Ryan Binns5-Aug-04 20:25
Ryan Binns5-Aug-04 20:25 
GeneralCreating Thread in DLL Pin
aman20065-Aug-04 14:57
aman20065-Aug-04 14:57 
GeneralRe: Creating Thread in DLL Pin
oustar5-Aug-04 16:21
oustar5-Aug-04 16:21 
GeneralRe: Creating Thread in DLL Pin
aman20066-Aug-04 6:46
aman20066-Aug-04 6:46 
GeneralPicture control question Pin
ben25-Aug-04 13:12
ben25-Aug-04 13:12 
--------------------------------------------------------------------------------

Hi,

I want to change the BMP from the picture control once I press a button. It seemed like I have to press twice on the button to change first time and then it never changes.
Here is the code:

BOOL CSdsdDlg::OnInitDialog()
{
CDialog::OnInitDialog();


HBITMAP hBmp1 = (HBITMAP ) ::LoadImage(NULL, _T("c:\\1.bmp"), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);

m_pic.SetBitmap(hBmp1);

...............

}


void CSdsdDlg::OnButton1()
{
HBITMAP hBmp2 = (HBITMAP ) ::LoadImage(NULL, _T("c:\\cool.bmp"), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
if (m_pic.GetBitmap()== hBmp1)
m_pic.SetBitmap(hBmp2);
else
m_pic.SetBitmap(hBmp1);
return;

}

GeneralRe: Picture control question Pin
oustar5-Aug-04 16:41
oustar5-Aug-04 16:41 
GeneralRe: Picture control question Pin
Ryan Binns5-Aug-04 18:09
Ryan Binns5-Aug-04 18:09 
GeneralCreate a MSFlexGrid within my ActiveX Control Pin
Pinhead_Me5-Aug-04 12:08
Pinhead_Me5-Aug-04 12:08 
QuestionCan Tcp/Ip "Accept() " Be Made "Non Blocking" Pin
jerry1211a5-Aug-04 12:02
jerry1211a5-Aug-04 12:02 
AnswerRe: Can Tcp/Ip "Accept() " Be Made "Non Blocking" Pin
Ravi Bhavnani5-Aug-04 13:58
professionalRavi Bhavnani5-Aug-04 13:58 
GeneralRe: Can Tcp/Ip "Accept() " Be Made "Non Blocking" Pin
Ryan Binns5-Aug-04 18:33
Ryan Binns5-Aug-04 18:33 
GeneralRe: Can Tcp/Ip "Accept() " Be Made "Non Blocking" Pin
Ravi Bhavnani6-Aug-04 2:51
professionalRavi Bhavnani6-Aug-04 2:51 
AnswerRe: Can Tcp/Ip "Accept() " Be Made "Non Blocking" Pin
Rickard Andersson205-Aug-04 15:38
Rickard Andersson205-Aug-04 15:38 
AnswerRe: Can Tcp/Ip "Accept() " Be Made "Non Blocking" Pin
palbano5-Aug-04 19:08
palbano5-Aug-04 19:08 
AnswerRe: Can Tcp/Ip "Accept() " Be Made "Non Blocking" Pin
geo_m5-Aug-04 22:24
geo_m5-Aug-04 22:24 
QuestionCorrect ReBar/ToolBar/DialogBar functionality? Pin
JBlair5-Aug-04 10:41
JBlair5-Aug-04 10:41 
QuestionHow to send kb/mouse message to an un-active "Notepad"? Pin
Member 6253945-Aug-04 10:25
Member 6253945-Aug-04 10:25 
GeneralConnecting to multiple servers thru single port client connection Pin
Sivaji5-Aug-04 9:26
Sivaji5-Aug-04 9:26 
GeneralRe: Connecting to multiple servers thru single port client connection Pin
palbano5-Aug-04 19:13
palbano5-Aug-04 19:13 
Generalautomate the "create a new connection" wizard Pin
guangguang5-Aug-04 7:37
guangguang5-Aug-04 7:37 
GeneralRe: automate the "create a new connection" wizard Pin
PJ Arends5-Aug-04 7:55
professionalPJ Arends5-Aug-04 7:55 
Generalpls help... its very urgent... Pin
deep_gz5-Aug-04 6:49
sussdeep_gz5-Aug-04 6:49 

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.