Click here to Skip to main content
15,925,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Ole DB for OLAP Pin
Steve Echols4-May-06 20:03
Steve Echols4-May-06 20:03 
QuestionOle DB for OLAP Pin
Tarek Jabri4-May-06 4:11
Tarek Jabri4-May-06 4:11 
QuestionHow to keep image displayed in dialog box? Pin
houari_id4-May-06 3:55
houari_id4-May-06 3:55 
AnswerRe: How to keep image displayed in dialog box? Pin
Cedric Moonen4-May-06 4:13
Cedric Moonen4-May-06 4:13 
GeneralRe: How to keep image displayed in dialog box? Pin
houari_id5-May-06 8:22
houari_id5-May-06 8:22 
GeneralRe: How to keep image displayed in dialog box? Pin
Cedric Moonen5-May-06 21:53
Cedric Moonen5-May-06 21:53 
QuestionCheckbox with BITMAP Pin
Raja Bose C Leo4-May-06 3:30
Raja Bose C Leo4-May-06 3:30 
AnswerRe: Checkbox with BITMAP Pin
toxcct4-May-06 3:44
toxcct4-May-06 3:44 
set your checkbox as an "image or icon" control (in the resource editor).
then, in the on click event handler, put this code to set the image on the button :
HICON hIcon;
if (m_checkBox.GetCheck() == TRUE) {
    hIcon = (HICON)LoadImage(AfxGetInstanceHandle(),
                             MAKEINTRESOURCE(IDI_IMAGE_STATE1),
                             IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR);
}
else {
    hIcon = (HICON)LoadImage(AfxGetInstanceHandle(),
                             MAKEINTRESOURCE(IDI_IMAGE_STATE2),
                             IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR);
}

if (hIcon) {
    m_pbVariablesListState->SendMessage(BM_SETIMAGE, IMAGE_ICON, (LPARAM)hIcon);
}

in your OnInitDialog() (or the function to iit your frame), call this event handler one time to initialize the check box...

this is only an example, which work for an icon check box...


TOXCCT >>> GEII power

[VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]
GeneralRe: Checkbox with BITMAP Pin
Raja Bose C Leo4-May-06 20:48
Raja Bose C Leo4-May-06 20:48 
AnswerRe: Checkbox with BITMAP Pin
Hamid_RT4-May-06 3:48
Hamid_RT4-May-06 3:48 
AnswerRe: Checkbox with BITMAP Pin
Ravi Bhavnani4-May-06 12:19
professionalRavi Bhavnani4-May-06 12:19 
QuestionNewbie: Using a com object in VC 7.1 Pin
ebruinsma4-May-06 2:51
ebruinsma4-May-06 2:51 
AnswerRe: Newbie: Using a com object in VC 7.1 Pin
Cedric Moonen4-May-06 3:13
Cedric Moonen4-May-06 3:13 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
ebruinsma4-May-06 3:21
ebruinsma4-May-06 3:21 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
toxcct4-May-06 3:31
toxcct4-May-06 3:31 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
ebruinsma4-May-06 3:44
ebruinsma4-May-06 3:44 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
toxcct4-May-06 3:52
toxcct4-May-06 3:52 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
ebruinsma4-May-06 3:56
ebruinsma4-May-06 3:56 
QuestionDialog resource editor in DLU Pin
YaronNir4-May-06 2:50
YaronNir4-May-06 2:50 
AnswerRe: Dialog resource editor in DLU Pin
toxcct4-May-06 2:59
toxcct4-May-06 2:59 
QuestionRe: Dialog resource editor in DLU Pin
David Crow4-May-06 3:18
David Crow4-May-06 3:18 
AnswerRe: Dialog resource editor in DLU Pin
Rob Caldecott4-May-06 13:17
Rob Caldecott4-May-06 13:17 
QuestionRunning 2 exe Pin
Anu_Bala4-May-06 2:36
Anu_Bala4-May-06 2:36 
AnswerRe: Running 2 exe Pin
toxcct4-May-06 2:40
toxcct4-May-06 2:40 
GeneralRe: Running 2 exe Pin
Laxman Auti4-May-06 3:27
Laxman Auti4-May-06 3:27 

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.