Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PreTranslateMessage problem? :( Pin
bosfan24-Feb-12 5:25
bosfan24-Feb-12 5:25 
AnswerRe: PreTranslateMessage problem? :( Pin
Member 843817224-Feb-12 4:51
Member 843817224-Feb-12 4:51 
GeneralRe: PreTranslateMessage problem? :( Pin
bosfan24-Feb-12 5:20
bosfan24-Feb-12 5:20 
AnswerRe: PreTranslateMessage problem? :( Pin
Randor 24-Feb-12 10:12
professional Randor 24-Feb-12 10:12 
AnswerRe: PreTranslateMessage problem? :( Pin
JackDingler24-Feb-12 10:56
JackDingler24-Feb-12 10:56 
QuestionHow to fix compile error error C2535 Pin
KASR124-Feb-12 0:06
KASR124-Feb-12 0:06 
AnswerRe: How to fix compile error error C2535 Pin
Code-o-mat24-Feb-12 22:50
Code-o-mat24-Feb-12 22:50 
QuestionHow to create toolbar on the dialog. Pin
appollosputnik23-Feb-12 23:11
appollosputnik23-Feb-12 23:11 
I have created a toolbar in mfc. I want to add this toolbar on my dialog. So in the dialog's OnInitDialog() function I am trying to create this toolbar. But the toolbar is not coming. Please tell me how can create it.

[code]
BOOL CDlgsViewDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CToolBar toolBar;
CRect rcClientOld; // Old Client Rect
CRect rcClientNew; // New Client Rect with Tollbar Added
GetClientRect(rcClientOld); // Retrive the Old Client WindowSize
toolBar.Create(this);
toolBar.LoadToolBar(IDR_MAINFRAME);
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST,0,reposQuery,rcClientNew);
return TRUE; // return TRUE unless you set the focus to a control
}
[/code]
AnswerRe: How to create toolbar on the dialog. Pin
_AnsHUMAN_ 24-Feb-12 1:24
_AnsHUMAN_ 24-Feb-12 1:24 
QuestionRe: How to create toolbar on the dialog. Pin
David Crow24-Feb-12 3:15
David Crow24-Feb-12 3:15 
QuestionOnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa23-Feb-12 21:50
shanmugarajaa23-Feb-12 21:50 
AnswerRe: OnTimer function is killed automatically when the dialog is closed Pin
Jochen Arndt23-Feb-12 22:21
professionalJochen Arndt23-Feb-12 22:21 
QuestionRe: OnTimer function is killed automatically when the dialog is closed Pin
Richard MacCutchan23-Feb-12 22:24
mveRichard MacCutchan23-Feb-12 22:24 
AnswerRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa23-Feb-12 23:28
shanmugarajaa23-Feb-12 23:28 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
Richard MacCutchan23-Feb-12 23:40
mveRichard MacCutchan23-Feb-12 23:40 
AnswerRe: OnTimer function is killed automatically when the dialog is closed Pin
bjorn_ht23-Feb-12 22:29
bjorn_ht23-Feb-12 22:29 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa23-Feb-12 23:37
shanmugarajaa23-Feb-12 23:37 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
bjorn_ht24-Feb-12 1:22
bjorn_ht24-Feb-12 1:22 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa24-Feb-12 1:53
shanmugarajaa24-Feb-12 1:53 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
bjorn_ht24-Feb-12 3:18
bjorn_ht24-Feb-12 3:18 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa24-Feb-12 19:49
shanmugarajaa24-Feb-12 19:49 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa26-Feb-12 20:16
shanmugarajaa26-Feb-12 20:16 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
bjorn_ht26-Feb-12 22:31
bjorn_ht26-Feb-12 22:31 
GeneralRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa27-Feb-12 0:38
shanmugarajaa27-Feb-12 0:38 
SuggestionRe: OnTimer function is killed automatically when the dialog is closed Pin
shanmugarajaa27-Feb-12 17:49
shanmugarajaa27-Feb-12 17: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.