Click here to Skip to main content
15,915,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I make theme-awared transparent control with UXTheme library (MFC / VC++ 2005) Pin
xanagan66610-Jul-08 21:39
xanagan66610-Jul-08 21:39 
Questioni can't understand why this result is showed~ Pin
Jung Seng Won10-Jul-08 21:36
Jung Seng Won10-Jul-08 21:36 
AnswerRe: i can't understand why this result is showed~ Pin
_AnsHUMAN_ 10-Jul-08 21:44
_AnsHUMAN_ 10-Jul-08 21:44 
AnswerRe: i can't understand why this result is showed~ Pin
Cedric Moonen10-Jul-08 21:47
Cedric Moonen10-Jul-08 21:47 
AnswerRe: i can't understand why this result is showed~ Pin
SandipG 10-Jul-08 21:50
SandipG 10-Jul-08 21:50 
AnswerRe: i can't understand why this result is showed~ Pin
CPallini10-Jul-08 22:02
mveCPallini10-Jul-08 22:02 
AnswerRe: i can't understand why this result is showed~ Pin
Stephen Hewitt10-Jul-08 22:12
Stephen Hewitt10-Jul-08 22:12 
Questiongraph using ProEssentials v6 in vc++ Pin
ani_ikram10-Jul-08 21:32
ani_ikram10-Jul-08 21:32 
i am using ProEssentials v6 to draw stack bar graph
i want to use embended color when one color change to another how is that possible plzzzz help me , its necessory and urgent

if any other solution is possible plz tell me

i am using following code





void CVEPExplorer::CreateSimpleHighLowClose()
{

// This example builds upon the basic CreateSimpleGraph '000' example chart //




CreateSimpleGraph();

PEnset(m_hPE, PEP_bNOSTACKEDDATA, FALSE);
PEnset(m_hPE, PEP_nPLOTTINGMETHOD, PEGPM_BARSTACKED);






}

void CVEPExplorer::CreateSimpleGraph()
{


RECT rect;
CStatic *d=(CStatic*)GetDlgItem(IDC_BAR);
d->GetClientRect(&rect);
rect.top=38;
rect.left=25;
rect.bottom=272;
rect.right=310;


int nBarColor = PERGB( 32,128,256,0);
PEvsetcell(m_hPE, PEP_dwaSUBSETCOLORS, 3, &nBarColor);
m_hPE = PEcreate(PECONTROL_GRAPH, WS_VISIBLE, &rect, m_hWnd, 1);
if (m_hPE)
{

PEnset(m_hPE, PEP_nSUBSETS, 4);
PEnset(m_hPE, PEP_nPOINTS, 1);

float faYdata[4][1];
faYdata[0][0]=1.5;
faYdata[1][0]=0.5;
faYdata[2][0]=1;
faYdata[3][0]=2;

PEnset(m_hPE, PEP_fBARWIDTH,0.1);

srand( (unsigned)time( NULL ) );
for(int p=0;p<4;p++)
{
for(int f=0;f<1;f++)
{

PEvsetcellEx (m_hPE, PEP_faYDATA, f, p, &faYdata[p][f]);


}
}


float faXdata[1][1];
faXdata[0][0]=50;






PEreinitialize(m_hPE);

PEresetimage(m_hPE, 0, 0);



tagSGRAPHPROPERTIES a;
a.nCGridLineControl;
a.nCGridLineControl;
a.bAllowLine;
a.bAllowPoint;
PEnset(m_hPE,PEP_bALLOWLINE,FALSE);
PEnset(m_hPE,PEP_bALLOWPOINT,FALSE);



PEszset(m_hPE, PEP_szMAINTITLE, TEXT(""));

PEszset(m_hPE, PEP_szYAXISLABEL, TEXT(""));
PEszset(m_hPE, PEP_szXAXISLABEL, TEXT(""));
PEnset(m_hPE, PEP_bFOCALRECT, TRUE);
PEnset(m_hPE, PEP_bALLOWBAR, PEGPM_AREA);
PEnset(m_hPE, PEP_nGRIDLINECONTROL, PEGLC_NONE);
PEnset(m_hPE, PEP_bALLOWRIBBON, TRUE);


PEvsetcell( m_hPE, PEP_szaPOINTLABELS, 0, TEXT("SNR" ));


// subset colors //
DWORD dwArray[5] = {PERGB(0,198,25,25), PERGB(128,198,0,0), PERGB(128,0, 198, 198 ), PERGB(128,198,198,0 ), PERGB(128,0,198,0 ) };
PEvsetEx(m_hPE, PEP_dwaSUBSETCOLORS, 0, 5, dwArray, 0);


int nNoLegends = -1;

PEvset(m_hPE, PEP_naSUBSETSTOLEGEND, &nNoLegends, 1);


// subset point types //


// Allow stacked type graphs //
PEnset(m_hPE, PEP_bNOSTACKEDDATA, FALSE);

// Various other features //
PEnset(m_hPE, PEP_bFIXEDFONTS, TRUE);
PEnset(m_hPE, PEP_bBITMAPGRADIENTMODE, TRUE);
PEnset(m_hPE, PEP_nQUICKSTYLE, PEQS_MEDIUM_LINE);
PEnset(m_hPE, PEP_bSIMPLEPOINTLEGEND, TRUE);
PEnset(m_hPE, PEP_bSIMPLELINELEGEND, TRUE);
PEnset(m_hPE, PEP_nLEGENDSTYLE, PELS_1_LINE);

PEnset(m_hPE, PEP_nGRADIENTBARS, 8);
PEnset(m_hPE, PEP_nTEXTSHADOWS, PETS_BOLD_TEXT);
PEnset(m_hPE, PEP_bMAINTITLEBOLD, TRUE);
PEnset(m_hPE, PEP_bSUBTITLEBOLD, TRUE);
PEnset(m_hPE, PEP_bLABELBOLD, TRUE);
PEnset(m_hPE, PEP_bLINESHADOWS, TRUE);
PEnset(m_hPE, PEP_nFONTSIZE, PEFS_MEDIUM);

PEnset(m_hPE, PEP_nDATAPRECISION, 1);

PEnset(m_hPE, PEP_bMARKDATAPOINTS, TRUE);
PEnset(m_hPE, PEP_nGRIDSTYLE, PEGS_DOT);

// Improves metafile export //
//PEnset(m_hPE, PEP_nDPIX, 600);
//PEnset(m_hPE, PEP_nDPIY, 600);

//PEnset(m_hPE, PEP_nRENDERENGINE, PERE_GDIPLUS);*/


}
}
QuestionHow to communicate between two activex? Pin
manish.patel10-Jul-08 21:09
manish.patel10-Jul-08 21:09 
QuestionConvert English letter to japenese Pin
manju#12310-Jul-08 20:54
manju#12310-Jul-08 20:54 
QuestionRe: Convert English letter to japenese Pin
jazy110-Jul-08 23:09
jazy110-Jul-08 23:09 
AnswerRe: Convert English letter to japenese [modified] Pin
Michael Schubert11-Jul-08 2:48
Michael Schubert11-Jul-08 2:48 
QuestionHow to create a .h file in C++? Pin
Shah Ravi10-Jul-08 20:50
Shah Ravi10-Jul-08 20:50 
AnswerRe: How to create a .h file in C++? Pin
Richard Andrew x6410-Jul-08 20:57
professionalRichard Andrew x6410-Jul-08 20:57 
GeneralRe: How to create a .h file in C++? Pin
Shah Ravi10-Jul-08 21:01
Shah Ravi10-Jul-08 21:01 
GeneralRe: How to create a .h file in C++? Pin
Richard Andrew x6410-Jul-08 21:05
professionalRichard Andrew x6410-Jul-08 21:05 
GeneralRe: How to create a .h file in C++? Pin
Cedric Moonen10-Jul-08 21:39
Cedric Moonen10-Jul-08 21:39 
AnswerRe: How to create a .h file in C++? Pin
T.RATHA KRISHNAN10-Jul-08 22:47
T.RATHA KRISHNAN10-Jul-08 22:47 
AnswerRe: How to create a .h file in C++? Pin
pallaka10-Jul-08 22:47
pallaka10-Jul-08 22:47 
QuestionMemoryleak Pin
T.RATHA KRISHNAN10-Jul-08 20:30
T.RATHA KRISHNAN10-Jul-08 20:30 
AnswerRe: Memoryleak Pin
Cedric Moonen10-Jul-08 20:38
Cedric Moonen10-Jul-08 20:38 
QuestionRe: Memoryleak Pin
T.RATHA KRISHNAN10-Jul-08 20:45
T.RATHA KRISHNAN10-Jul-08 20:45 
AnswerRe: Memoryleak Pin
Cedric Moonen10-Jul-08 20:46
Cedric Moonen10-Jul-08 20:46 
AnswerRe: Memoryleak Pin
Richard Andrew x6410-Jul-08 20:43
professionalRichard Andrew x6410-Jul-08 20:43 
GeneralRe: Memoryleak Pin
pallaka10-Jul-08 20:53
pallaka10-Jul-08 20:53 

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.