// ¸Þ¸ðÀå AppID #define MemoAppID (U32)(0x202) // ¿ÜºÎ¿¡¼ ¸Þ¸ð ÀúÀå #define REQ_MEMO_SAVE_RECORD (REQ_ADDON_COMMAND+707) typedef struct tagIMPORTEDITMEMO { // ·¹ÄÚµåÀÇ ¾ÆÀ̵ð RecId RecID; // ·¹ÄÚµåÀÇ ±×·ì ¾ÆÀ̵ð CatId GroupID; U8 pad1; // º¸È£¸ðµå ¼³Á¤ ¿©ºÎ FlagValue SecretFlag; // ³»¿ë P_SZ Content; // ÆùÆ® »ö»ó COLOR TextColor; } IMPORTEDITMEMO, *P_IMPORTEDITMEMO; void tomemo( char *memo ) { IMPORTEDITMEMO ImportEditMemo; STATUS rtnVal; char* pMemoData = NULL; pMemoData = Lmalloc( strlen( memo ) + 1 ); strcpy( pMemoData, memo ); // ÆíÁýÇÒ ·¹ÄÚµå ID - NULL_REC_IDÀÌ¸é »õ·Î ÀÛ¼ºÀÌ´Ù ImportEditMemo.RecID = NULL_REC_ID; // »ç¿ëÀÚ°¡ ¼³Á¤ÇÑ ±×·ì ID·Î ÀúÀåµÈ´Ù ImportEditMemo.GroupID = NULL_CAT_ID; ImportEditMemo.SecretFlag = DBM_OFF; ImportEditMemo.Content = (P_SZ)pMemoData; // ³¯Â¥´Â ½Ã½ºÅÛÀÇ ³¯Â¥°¡ ÀÚµ¿À¸·Î ÀԷµȴ٠//ImportEditMemo.Data = (U32)0; // ÅؽºÆ® ÆùÆ® »ö±ò ImportEditMemo.TextColor = COLOR_BLACK; rtnVal = RequestToApplication( MemoAppID, REQ_MEMO_SAVE_RECORD, &ImportEditMemo ); if( rtnVal == CVOS_OK ) { MsgBoxDo( MK_INFORMATION, "¸Þ¸ðÀå ÀúÀå", "¸Þ¸ðÀå¿¡ ÀúÀåÇß½À´Ï´Ù.", MSGBOX_OK ); } else { MsgBoxDo( MK_ERROR, "¸Þ¸ðÀå ÀúÀå", "¸Þ¸ðÀå ÀúÀåÀ» ½ÇÆÐÇß½À´Ï´Ù.", MSGBOX_OK ); } Lfree( pMemoData ); } |