Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Generic Office 2007 _Application Interface class Pin
eight5-Jan-10 14:49
eight5-Jan-10 14:49 
QuestionAdd icons to menu bar Pin
Abinash Mohanty4-Jan-10 17:41
Abinash Mohanty4-Jan-10 17:41 
AnswerRe: Add icons to menu bar Pin
KingsGambit4-Jan-10 17:56
KingsGambit4-Jan-10 17:56 
AnswerRe: Add icons to menu bar Pin
Madhu Nair4-Jan-10 18:01
Madhu Nair4-Jan-10 18:01 
QuestionList Contol Pin
DevelopmentNoob4-Jan-10 15:11
DevelopmentNoob4-Jan-10 15:11 
QuestionRe: List Contol Pin
David Crow4-Jan-10 15:57
David Crow4-Jan-10 15:57 
AnswerRe: List Contol Pin
YoYo_Yao4-Jan-10 16:16
YoYo_Yao4-Jan-10 16:16 
QuestionVS 2008 - CDialogBar - older application Pin
Tony Teveris4-Jan-10 7:53
Tony Teveris4-Jan-10 7:53 
Converted an older application to VS 2008, this is NOT a new application. This code has been used for years with no problems. Now when built with VS 2008 the CDialogBar is no longer visable but when I check the code (debugging) everything is going through the motions as if very thing is fine. So does anyone have any ideas?

TIA

IDD_HRULE_DIALOG DIALOG 0, 0, 511, 21
STYLE DS_SETFONT | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
CONTROL "",IDC_HRULER,"Static",SS_WHITERECT | SS_NOTIFY | SS_SUNKEN,43,4,429,12
END

// just who is derived from whom

class CFrameWnd : public CWnd
class CMDIChildWnd : public CFrameWnd
class CChildFrame : public CMDIChildWnd
class CRuleHDlgBar : public CDialogBar

// create code
int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
return -1;

// create ruler dialog bars
if (!m_RuleHDlgBar.Create(this, IDD_HRULE_DIALOG,CBRS_TOP| CBRS_SIZE_FIXED,-1)
|| !m_RuleHDlgBar.InitDialog())
{
TRACE0("Failed to create dialog bar\n");
return -1; // fail to create
}
if (!m_RuleVDlgBar.Create(this, IDD_VRULE_DIALOG,CBRS_LEFT| CBRS_SIZE_FIXED|CBRS_ORIENT_VERT,-1)
|| !m_RuleVDlgBar.InitDialog())
{
TRACE0("Failed to create dialog bar\n");
return -1; // fail to create
}
Like I said, the actual code to draw, size the dialogbar executes fine.

Tony Teveris
Gerber Scientific Products
Senior Software Engineer
Phone: 860 648 8151
Fax: 860 648 8214
83 Gerber Road West
South Windsor, CT 06074

QuestionCComPtr<istream> releasing problem</istream> Pin
A&Ms4-Jan-10 1:32
A&Ms4-Jan-10 1:32 
AnswerRe: CComPtr releasing problem Pin
KarstenK4-Jan-10 1:57
mveKarstenK4-Jan-10 1:57 
GeneralRe: CComPtr releasing problem Pin
A&Ms4-Jan-10 3:27
A&Ms4-Jan-10 3:27 
GeneralRe: CComPtr releasing problem Pin
KarstenK4-Jan-10 3:34
mveKarstenK4-Jan-10 3:34 
GeneralRe: CComPtr releasing problem Pin
A&Ms4-Jan-10 4:42
A&Ms4-Jan-10 4:42 
GeneralRe: CComPtr releasing problem Pin
KarstenK4-Jan-10 20:35
mveKarstenK4-Jan-10 20:35 
AnswerRe: CComPtr releasing problem Pin
Stephen Hewitt4-Jan-10 3:13
Stephen Hewitt4-Jan-10 3:13 
GeneralRe: CComPtr releasing problem Pin
A&Ms4-Jan-10 3:29
A&Ms4-Jan-10 3:29 
GeneralRe: CComPtr releasing problem Pin
Stephen Hewitt5-Jan-10 3:54
Stephen Hewitt5-Jan-10 3:54 
AnswerRe: CComPtr releasing problem Pin
KingsGambit4-Jan-10 18:16
KingsGambit4-Jan-10 18:16 
GeneralRe: CComPtr releasing problem Pin
A&Ms4-Jan-10 18:50
A&Ms4-Jan-10 18:50 
GeneralRe: CComPtr releasing problem Pin
KingsGambit4-Jan-10 19:09
KingsGambit4-Jan-10 19:09 
QuestionUser permission problem with MFC Pin
bhanu_85094-Jan-10 0:38
bhanu_85094-Jan-10 0:38 
AnswerRe: User permission problem with MFC Pin
CPallini4-Jan-10 1:02
mveCPallini4-Jan-10 1:02 
AnswerRe: User permission problem with MFC Pin
KarstenK4-Jan-10 2:01
mveKarstenK4-Jan-10 2:01 
GeneralRe: User permission problem with MFC Pin
bhanu_85094-Jan-10 5:32
bhanu_85094-Jan-10 5:32 
GeneralRe: User permission problem with MFC Pin
KarstenK4-Jan-10 20:38
mveKarstenK4-Jan-10 20:38 

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.